i have a json file:
{ \"data\": \"Click\", \"size\": \"Here\" }
and a form:
First name:
So, what's wrong with $.getJSON? It works fine:
$.getJSON
$.getJSON("1.json", function(data) { $('input[name="firstname"]').val(data["data"]); $('input[name="lastname"]').val(data["size"]); });