javascript - how to convert json without &quot -


var text = [{"name":"en3","value":234},{"name":"en4","value":135},{"name":"en1","value":335},{"name":"en2","value":310},{"name":"en5","value":1548}] 

how convert json without "?

like:[{"name":"en3","value":234},and on?

i have try use json.parse('${resultdata}'.replace(/"/g, '\\"')),but throws error uncaught syntaxerror: unexpected token \

just replace regex /"/g, '"'

i.e code should json.parse('${resultdata}'.replace(/"/g, '"'))


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -