JSON API parsing error, single quotes used for errors like "['BAD CSRF']"

(Victor van Poppelen) #1

My JSON parser fails when retrieving certain errors, so far I’ve only expierenced it with “[‘BAD CSRF’]” being returned when using the /groups/{group_id}/members.json endpoint (as single-quotes for string delimiters is improper JSON). Quick search in github revealed the following:

I imagine there might be some other areas with improper manually-formatted JSON as well.

(Sam Saffron) #2

Mind sending a PR through to fix both spots?

(Victor van Poppelen) #3

(Jeff Atwood) #4