JSON object attributes

var myjson = { id: 01,

                              name: ‘dilip’,

                              siteaddress: ‘https://d4dilip.wordpress.com’ };

for(var att in myjson)

{ console.log(att); }

 

Output

id

name

siteaddress

Advertisements