article

JSON Object

[WHAT]

  1. [] the JSON object is used primarily to transform javascript objects into the json format used for data exchange with other applications.

[WHY]

  1. [] to facilitate the exchange of data between different applications, machines,

[WHERE]

  1. [] typically when javascript objects are transferred from 1 machine to another, they need to be transported in a format that travels well and json is that format.

[WHEN]

  1. [] to convert a javascript object into a json object
  2. [] to convert a json object into a javascript object

[EXAMPLE]

  1. [] converting a JavaScript object into a JSON object
var myCar = {
  make: "Ford",
  model: "Mustang",
  doors: 2,
  engineSize: 5.0
}
var myCarJSON  = JSON.stringify(myCar);
  1. [] converting a JSON object into a javascript object
var myCar = JSON.parse(myCarJSON);

[HOW-TO]

  1. []

[REFERENCE]

  1. [] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON

 

Details Photos Edit more

Details

ID: 2710

NAME: JSON

DESCRIPTION: JSON - an overview of the native JavaScript language object JSON

AUTHOR: article.author/s

EDITOR: article.editor/s

PUBLISHER: article.publisher/s

STATUS: Write

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

page_photo

actions

Email Email-Owner SMS and