How to access JSON object in JavaScript

Below is a JSON string. JSON String { “name”: “mkyong”, “age”: 30, “address”: { “streetAddress”: “88 8nd Street”, “city”: “New York” }, “phoneNumber”: [ { “type”: “home”, “number”: “111 111-1111” }, { “type”: “fax”, “number”: “222 222-2222” } ] } To access the JSON object in JavaScript, parse it with JSON.parse(), and access it via … Continue reading How to access JSON object in JavaScript