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

Total Post:5

Points:35
JQuery 
 544  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