JSON - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : Web Features : JSON : JSON

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.

• 

Because the underlying implementation of the JSON package is a module, it is possible to use the form JSON:-command to access a command from the package. For more information, see Module Members.

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