TextAnalysis

FREEMIUM
By TextMiner | Updated hace 13 días | Tools
Popularity

9 / 10

Latency

292ms

Service Level

100%

Health Check

N/A

Back to All Discussions

single quoted JSON input gets rejected by the server

Rapid account: Ahmadnassri
ahmadnassri
hace 9 años

you server fails with an obscure message when sending JSON data that is single quoted:

{ text: 'Yo mamma' }

but works fine when calling with double quoted object:

{ text: "Yo mamma" }

this is ironic since you are returning single quoted JSON objects in your responses …

can you please fix so your server accepts BOTH single and double quoted JSON strings.

Rapid account: Textanalysis
textanalysis Commented hace 9 años

I have change the json request to form request and resolve the problem, thanks.

Rapid account: Textanalysis
textanalysis Commented hace 9 años

Thanks for reminding me this problem, I’m also confused cause this never happened before. I will fix it as far as possible. Thanks a lot!

Join in the discussion - add comment below:

Login / Signup to post new comments