JSON, short for
JavaScript Object Notation is a human readable file format derived from JavaScript and popularized by
Douglas Crockford in the early 2000s. JSON's official media type is
application/json and filenames are using
.json extension.
Example
{
"name": "Code",
"surName": "Beautify",
"age": 3,
"website": "https://codebeautify.net",
"tools": [
"Beautifier",
"Minifier",
"Validator"
]
}
Json functions in all programming languages
JavaScript
JSON.parse(json_string);
PHP json_encode
json_encode ( mixed $value [, int $options = 0 [, int $depth = 512 ]] ) : string
PHP json_decode
json_decode ( string $json [, bool $assoc = FALSE [, int $depth = 512 [, int $options = 0 ]]] ) : mixed