Answer the question
In order to leave comments, you need to log in
How to get around this from json?
Hello, I'm trying to get data out of JSON. Everything works as it should, but I ran into such a problem. The tv.image
key is through a dot.
$(document).ready(function() {
$.getJSON('/json.json', function(data) {
$.each(data, function(key, val) {
$('.data_json').append('<a href="' + data[key].uri +'"><p value="' + data[key].id + '"><b>' + data[key].pagetitle + '</b><br>'+ data[key].tv.image + data[key].description +'</p></a>');
});
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question