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

Online Help

All Products    Maple    MapleSim


JSON

  

null

  

Empty value from JSON data

 

Description

Examples

Compatibility

Description

• 

The JSON format contains a value null to represent missing data. The JSON:-null symbol in Maple is used to represent JSON null symbols after import into Maple.

• 

The commands JSON:-ParseString and JSON:-ParseFile may produce output which uses JSON:-null.

• 

The JSON:-ToString command recognizes JSON:-null and translates it to null in JSON.

Examples

Parse a JSON string containing null data.

JSON:-ParseString("[2,3,null,5,null,7]");

2,3,JSON:−null,5,JSON:−null,7

(1)

Generate a JSON string containing null data to signify missing information.

Beowulf := table([ "title" = "Beowulf", "language" = "Anglo-Saxon", "author" = JSON:-null ]);

Beowulftableauthor=JSON:−null,language=Anglo-Saxon,title=Beowulf

(2)

JSON:-ToString( Beowulf );

{"author": null, "language": "Anglo-Saxon", "title": "Beowulf"}

(3)

Compatibility

• 

The JSON[null] command was introduced in Maple 2015.

• 

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

See Also

JSON

NULL