How to display nested objects?

Friends, how to display nested objects from json, basic knowledge is not enough?
Trying to form a sheet version of jquery, and the nested objects are output as [object Object].
$.getJSON('https://api.cdnjs.com/libraries/jquery', function(data){
 var array = [];

 $.each(data, function(key, val){
 array.push('<li id="' + key + '">' + val + '</li>');
});

 $('
June 10th 19 at 14:29
2 answers
June 10th 19 at 14:31
Keep.

Or so - if you really want a list.
0xD34F Thank You for the solution. - Alejandra.Sawa commented on June 10th 19 at 14:34
June 10th 19 at 14:33
you don't have enough basic knowledge, and the desire to see what was happening in the data and in what form they come in
https://api.cdnjs.com/libraries/jquery

you can do the steps in the Sources tab of Chrome browser, or use a JSONView plugin

Find more questions by tags JSONJavaScript