JSON
JavaScript Object Notation (JSON) is a text-based format for storing and transporting data. The Javascript Objects can be easily converted into JSON and vice versa. For example.
stringify
and parse
are the two methods supported by JSON.
Method
Description
parse()
Returns JavaScript object from the parsed JSON string
stringify()
Returns JSON string from JavaScript Object
The following data types are supported by JSON.
string
number
array
boolean
object with valid JSON values
null
It can not be function
, date
or undefined
.
Last updated
Was this helpful?