I recognize that there are a lot of SO topics on this already but all of them seem quite dated.
IE: SBJSON parsing issue with Twitter's GET trends/:woeid and JSONValue ARC issue
However, my JSON response is a little different.
This is the raw string (created from a Django backend):
[
{"user": "[
{\"id\": \"48\"},
{\"email_address\": null},
{\"password\": \"f41fd61838bc65d6b2c656d488e33aba\"},
{\"salt\": \"24\"},
{\"date_created\": \"2013-01-27 07:59:26.722311+00:00\"},
{\"date_modified\": \"2013-01-27 07:59:26.722357+00:00\"},
{\"is_deleted\": \"False\"}
]"
}
]
The thing stopping me from just using SBJson and it's SBJSonParser and/or the Apple NSJSONSeriliazatoin class + methods are the two quotation marks after "user":
and before the second [
(as well as it's enclosing quote cousin, after the second last ]
).
Those quotes mess up both of the mentioned solutions in converting NSMutableString
into a JSON object.
Any advice/solutions in either removing the offending quotes and/or a JSON parsing library that deals with them effectively?
NSScanner
and perhaps some NSMutableString
class methods but nothing exceptionally obvious springs to my mind.
Looking for a simple novel solution.