I’m a bit new to json responses. I’ve been using json.net to parse my responses into custom object. But I get the feeling that this response is a standard format that I should be able to parse easily.
Here a sample of the response.
{"jquery":
[
[0, 1, "call", ["body"]],
[1, 2, "attr", "find"],
[2, 3, "call", [".status"]],
[3, 4, "attr", "hide"],
[4, 5, "call", []],
[5, 6, "attr", "html"],
[6, 7, "call", [""]],
[7, 8, "attr", "end"],
[8, 9, "call", []],
[0, 10, "call", ["body"]],
[10, 11, "attr", "captcha"],
[11, 12, "call", ["uIP22Wow9xa68aLQ0tl1e9Uiiinracdj"]]
]}
Is this something standard or should I just go ahead with my custom object?
Thanks
.NET 4.5 includes a JavaScriptSerializer Class which makes it easy to parse just about anything.
I usually parse my data doing something like this..