JSON (.json) File Format
JSON file format
Description
Notes
Examples
References
JSON (JavaScript Object Notation) is a lightweight text-based data standard for describing structured data made of key-value pairs and lists.
As a human-readable format, it offers an alternative to explicitly tagged structured data such as XML.
The JSON package provides tools for parsing and generating JSON expressions.
The general-purpose commands Import and Export also support this format.
Content-Type: application/json
Parse a JSON string as an expression.
JSON:-ParseString⁡[1, 2, 3.265, 6.01, 7.373]
1,2,3.265,6.01,7.373
Import data from a file in JSON format.
Import⁡example/address.json,base=datadir
table⁡companyName=Maplesoft,founded=1988,address=table⁡streetAddress=615 Kumpf Drive,province=ON,city=Waterloo,country=Canada,postalCode=N2V 1K8,phoneNumbers=table⁡number=+1 (519) 747-2373,type=local,table⁡number=+1 (800) 267-6583,type=tollfree,table⁡number=+1 (519) 747-5284,type=fax
Export data to a JSON file in the home directory of the current user.
Mouse ≔ table⁡Genus=Mus,Species=musculus
Mouse≔table⁡Species=musculus,Genus=Mus
MouseFamily ≔ Muridae
MouseFamily≔Muridae
MouseOrder ≔ Rodentia
MouseOrder≔Rodentia
MouseClass ≔ Mammalia
MouseClass≔Mammalia
Export⁡mouse.json,Mouse,base=homedir
81
[RFC4627] Crockford, D., The application/json Media Type for JavaScript Object Notation (JSON), RFC 4627, July 2006.
See Also
Formats
Download Help Document