Sunday, 15 February 2015

Trying to parse json source with javascript -



Trying to parse json source with javascript -

this question has reply here:

parse json in javascript? [duplicate] 16 answers

i trying parse json source javascript.

i have json source:

var exam = '{ status : 'connected', authresponse: { accesstoken: 'it accesstoken', expiresin:'2014-06-19', signedrequest:'it signedrequest', userid:'mp172' } }';

to parse, utilize json.parse(exam);

after source, not working. want parse source javascript.

actually, json source not valid. according json.org, fellow member should quote "

change exam {"status":"connected","authresponse":{"accesstoken":"it accesstoken","expiresin":"2014-06-19","signedrequest":"it signedrequest","userid":"mp172"}}

javascript json parsing

No comments:

Post a Comment