json to split in elements in javascript -


{ "name": "chris", "age": "rip", "musketeers": ["athos", "aramis", "porthos", "d'artagnan"], "stooges": [ { "name": "moe" }, { "name": "larry" }, { "name": "curly" } ], "details": { "first": "michael", "last": "jackson" } }

output should be:
name :chris

age :rip

musketeers: athos,aramis,porthos,d'artagnan

stooges: name:moe name:larry name:curly

details: first :michael last:jackson

json valid js object. can name:var name=data.name; , musketeers

var musketeers = data.musketeers; (var = 0; < musketeers.length; i++) {   console.log(musketeers[i]); } 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -