Example of Parsing JSON Array from URL

Example of Parsing JSON from URL where JSON contains an Array (phoneNUmbers). The data is on ID 57 but shown below: { “firstName”: “John”, “lastName”: “Smith”, “age”: 25, “address”: { “streetAddress”: “21 2nd Street”, “city”: “New York”, “state”: “NY”, “postalCode”: 10021 }, “phoneNumbers”: [ { “type”: “home”, “number”: “212 555-1234” }, { “type”: “fax”, “number”: “646 555-4567” } ] }

Leave a Reply

Your email address will not be published. Required fields are marked *