Convert a string written in JSON format, into a JavaScript object

Total Post:5

Points:35
JQuery 
 486  View(s)
Ratings:
Rate this:

Convert a string written in JSON format, into a JavaScript object.

I want to get name from var

<script>

var var = '{ "name":"Mindstick", "age":31, "city":"Allahabad" }';
</script>

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!