You can parse JSON results from a web service call in a Self script, use,
Http.requestJSON(url)
This will automatically convert the JSON object to an object in Self.
You can then access its state.
var result = Http.requestJSON(url);
var message = result[1].message;
See,
https://www.botlibre.com/forum-post?id=13020078
Here are some examples scripts using JSON,
https://www.botlibre.com/script?tag-filter=json
|