JSON Parsing in Javascript & node -
i trying parse json array posted client side node based server.
the json object holding array looks this
customdata : { "playlist": [ "//www.youtube.com/embed/bxq6sofu_38?rel=0", "//www.youtube.com/embed/qyqchamz4em?rel=0" ] }
however when seek access info using customdata.playlist[0], returns cannot parse 'playlist' console reports undefined.
i checked json using jsonlint validator , said me json valid. must missing pretty simple thoughts?
if info client side should parse this:
var parsed = json.parse(recieveddata);
and have access them.
javascript json node.js
No comments:
Post a Comment