I updated my JSON additions to NSDictionary to make the output of -jsonStringValue more readable: It will now indent properly based on the nesting level of each dictionary. (The previous version simply output one long string). In some cases, such as an array of dictionaries, the output can still be confusing, but in most other cases, it should be quite an improvement. I’ve also included my entire Xcode project in the download this time - including unit tests - instead of just the categories.
You can download the new version here.
I’d love any feedback on this code… are you using it? Is it working for you? Any bugs? Any other features or methods you’d like to see? I’m also considering adding some delegation features to the parser which would have similar semantics to NSXMLParser’s - it would get called when strings and values are encountered and would have the option of doing specialized parsing, skipping values, handling certain escapes, etc. If the delegate isn’t set or does not handle a certain type of value, it will default to the same parsing it does now. Is this something you would use? Please leaves comments with any feedback!