Page 1 of 1
Interrogating JSON from HTTP request
Posted: 14 Jan 2013 19:34
by auto_wiz
Anyone have any idea how to pick out values from a JSON response from an HTTP request through Automagic or if it's even possible. If so can you post an example please.
Re: Interrogating JSON from HTTP request
Posted: 15 Jan 2013 13:18
by Martin
There is no built in way to handle a JSON response. You could use a script with a bunch of indexOf and substring functions.
The next version will extend the matches function with an optional parameter 'groups' to get the values of the capturing groups matched by the regex.
Re: Interrogating JSON from HTTP request
Posted: 15 Jan 2013 16:02
by auto_wiz
OK. Thanks for the reply. I'll have a play with it and post an example if I come up with anything useful. I'm not too hot on writing code but I'll certainly give it a go.