JSON - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


JSON

Tools for parsing and generating data in JSON format

 

Calling Sequence

Description

Accessing JSON Package Commands

List of JSON Package Commands

Examples

Compatibility

Calling Sequence

JSON:-command(arguments)

command(arguments)

Description

• 

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.

Accessing JSON Package Commands

• 

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.

List of JSON Package Commands

• 

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.

Examples

with(JSON):

ParseString("{\"count\" : 3}");

tablecount=3

(1)

ToString( table([ "a"=[2,3,4,5], "b"=3 ]) );

{"a": [2, 3, 4, 5], "b": 3}

(2)

Compatibility

• 

The JSON package was introduced in Maple 2015.

• 

For more information on Maple 2015 changes, see Updates in Maple 2015.

See Also

XMLTools