Introducing Quests: Tailored gamification & bridging in-person events with your community Mike Gitkos Yesterday at 12:39 PM1 day
Posted October 9, 20177 yr 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! Edited October 9, 20177 yr by Dave Baker
October 11, 20177 yr Management We just use PHP's json_encode, which should escape any control characters. It may be the Perl you're using?
Archived
This topic is now archived and is closed to further replies.