Dave Baker Posted October 9, 2017 Posted October 9, 2017 Just reporting that the API's response chokes when I have a quotation mark in the name of a forum, for the GET /forums/topics method. An example error being reported by the Perl script I wrote to call the API and process the response is: The script died with: , or } expected while parsing object/hash, at character offset 332 (before "Forums")",\n ...") at /home/www/scripts/message_digest/DigestTopics.pm line 84. I took the quotation marks out of the name of the forum -- was Message Boards ("Forums") and now is Message Boards (Forums) -- which eliminated the problem. Maybe something in the way the API is preparing the JSON response when a quotation mark occurs in that field? But I suppose it might also be an issue with the JSON module I'm using with Perl to decode the JSON. Hope that's helpful -- thanks!
Management Matt Posted October 11, 2017 Management Posted October 11, 2017 We just use PHP's json_encode, which should escape any control characters. It may be the Perl you're using?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.