Interrogating JSON from HTTP request

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
auto_wiz
Posts: 26
Joined: 30 Nov 2012 23:49

Interrogating JSON from HTTP request

Post by auto_wiz » 14 Jan 2013 19:34

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.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Interrogating JSON from HTTP request

Post by Martin » 15 Jan 2013 13:18

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.

auto_wiz
Posts: 26
Joined: 30 Nov 2012 23:49

Re: Interrogating JSON from HTTP request

Post by auto_wiz » 15 Jan 2013 16:02

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.

Post Reply