I have a question, how can I go through Json and retrieve 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"
},