This question is very similar to this question (How to fill form with JSON?). The difference is that the JSON comes from a URL, and I don't know how to read the JSON returned from that URL and store in var
.
URL: http://MyServer/Results.json
This call returns this JSON:
{
"id" : 12,
"name": "Jack",
"description": "Description"
}
I only need to fill <input>
description with the field "description" from the JSON stream. The example uses a loop:
<form>
<input type="text" name="id"/>
<input type="text" name="name"/>
<input type="text" name="description"/>
</form>
How can this be done?