1
Guys I have a doubt, how do I go through the Json and recover specific objects through ajax?
Code:
function loadJson(){
$.ajax({
url: "data.json",
context: document.body
}).done(function() {
$( this ).addClass( "done" );
$(".done").load("data.json");
});
}
Json:
$.json
[
{
"name":"Rio de janeiro",
"contents":[
{
"moment":"Rio de janeiro",
"gallery":null,
"tags":[
"Calor",
"Verão",
"Sol"
],
"text":"ENxuKBLPgIuaevUGsxahYQwggHiheIBHsYxwiAborXeqJRoacSbdkYeufLSdnSiRzUnuVRuKktmBTDltuJXryfKyxXjDrACJXgIU",
"contentUrl":null,
"createdAt":1456231430795,
"type":"TEXT",
"socialNetwork":"TWITTER",
"userName":"MatSproesser",
"avatarUrl":"https://pbs.twimg.com/profile_images/1207792762/opf_normal.jpg"
},