im a newbie :)
I searched my questions, there are some topic but they dont are like my specific question.
I have an Ajax call for update a form, i can see the values in the console.log(), but I can't take the values for insert in the input or divs, here my code:
$(document).ready(function() {
$.ajax({
type: "GET",
url: 'my-web-service',
dataType: "text",
success: function(data) {
console.log(data)
var json = $.parseJSON(data);
for (var i = 0; i < json.length; ++i) {
$('#json').append('<div>' + json[i].name + '</div>');
}
console.log(json)
}
});
});
My JSON data is :
{
"experience": [
[
"58b407cd30f8c7a508004210",
{
"artistInfo": {
"id": "f8d3a411",
}
},
{
"name": "test",
"description": "testing",
"tipology": null,
"email": "ext_link",
"externalLink": "www.mywebstite.com",
}
]
]
}
'<div>' + json[i].name + '</div>'?dataType: "text"is that correct?