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

Online Help

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]");

(1)

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

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

(2)

JSON:-ToString( 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

 


Download Help Document