Close
Close window
JSON - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

JSON

Tools for parsing and generating data in JSON format

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.

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


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /