If you had a NSString containing JSON data and you needed to retrieve the VALUE for a given KEY, but you needed to read the RAW JSON string for that key, how would you do it?
Suppose that the VALUE has several dictionaries and arrays, and you needed the raw string just to calculate a signature.
Is there anything out there that could do this? JSONKit doesn’t provide this functionality. I’d like to avoid writing a custom parser just for this feature.
Actually JSONKit is very good for satisfying your needs.
First you should convert your string to NSData to use JSONKit to parse it, then you can find the value of the key you want, finally JSONKit can convert it back to NSString.
Some codes will show more details here, hope to help:
And the output will look like: