Data at Your Fingertips: Explore Our New Reporting and Statistical Capabilities By Ryan Ashbrook Tuesday at 01:29 PM
Dave Baker Posted October 9, 2017 Share 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! Link to comment Share on other sites More sharing options...
Management Matt Posted October 11, 2017 Management Share 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? Link to comment Share on other sites More sharing options...
Dave Baker Posted October 11, 2017 Author Share Posted October 11, 2017 Must be. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.