so I have this json file where I want to get the first child element but don't know how.
$.ajax({
url: link,
dataType: 'jsonp',
success: function (data) {
if (data.results == null) {
return;
}
deck = data.results.deck;
publishers = data.results.publishers[0].publisher
}
//...
it works to get the deck value but not to get the <publisher>
in <publishers>