I have a JSON string and I want to parse it to an object (to do some query after that).
I have found Fiddler.WebFormats.JSON.JsonDecode() but the returned JSONObject has no method to get or set content.
How to decode and use JSON strings ?
Thanks for any help !
1 Answer, 1 is accepted
answered on 08 Apr 2014, 09:10 PM
The returned object has a JSONObject property which is an ArrayList, Hashtable, or primitive value that is equivalent to the json object in question. Fiddler uses this class in its JSONView extension.
If you prefer a different pattern (e.g. something with strong typing, a schema, etc) then you can & should use one of the myriad JSON encoder/decoders available for the .NET Framework.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.