Category Archives: JavaScript

How to Create JSON string in JavaScript

How to Create JSON string in JavaScript – The JSON Format Evaluates to JavaScript Objects. The JSON format is syntactically identical to the code for creating JavaScript objects. Because of this similarity, a JavaScript program can easily convert JSON data into native JavaScript objects. Note: * The JSON syntax is derived from JavaScript object notation syntax, but the JSON format is text only. Code for reading and generating JSON data can be… Read More »

How to Access JSON Object in JavaScript

Example How to Access JSON Object in JavaScript – Below is a sample for JSON string. JSON String { “name”: “tiket”, “age”: 30, “address”: { “streetAddress”: “88 8nd Street”, “city”: “New York” }, “phoneNumber”: [ { “type”: “home”, “number”: “111 111-1111” }, { “type”: “fax”, “number”: “222 222-2222” } ] } How to Access JSON Object in JavaScript… Read More »