String to JSON object


/ Published in: JavaScript
Save to your folder(s)

normal eval doesn't work


Copy this code and paste it in your HTML
  1. var obj = eval('(' +"{'MSRP': 20000,'cashDown': 2000,'tradeIn': 1000}" + ')');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.