Currently the parser permits trailing commas after the last key-value pair of an object. For example the following statement: new JSONObject("{\"a\":1,}"); doesn't throw any exceptions. As far as I know trailing commas are not permitted in json.
Reactions are currently unavailable
Currently the parser permits trailing commas after the last key-value pair of an object. For example the following statement: new JSONObject("{\"a\":1,}"); doesn't throw any exceptions. As far as I know trailing commas are not permitted in json.