JSON
Tools for parsing and generating data in JSON format
Calling Sequence
Description
Accessing JSON Package Commands
List of JSON Package Commands
Examples
Compatibility
JSON:-command(arguments)
command(arguments)
JSON (JavaScript Object Notation) is a lightweight data-interchange format.
The JSON package is a collection of commands for parsing JSON data into Maple expressions, and for encoding Maple expressions into JSON format.
Each command in the JSON package can be accessed by using either the long form or the short form of the command name in the command calling sequence.
The long form, JSON:-command, is always available. The short form can be used after loading the package.
The following is a list of commands available in the JSON package.
null
ParseFile
ParseString
ToString
To display the help page for a particular JSON command, see Getting Help with a Command in a Package.
with(JSON):
ParseString("{\"count\" : 3}");
table⁡count=3
ToString( table([ "a"=[2,3,4,5], "b"=3 ]) );
{"a": [2, 3, 4, 5], "b": 3}
The JSON package was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
See Also
XMLTools
Download Help Document