JSON
null
Empty value from JSON data
Description
Examples
Compatibility
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.
Parse a JSON string containing null data.
JSON:-ParseString("[2,3,null,5,null,7]");
2,3,JSON:−null,5,JSON:−null,7
Generate a JSON string containing null data to signify missing information.
Beowulf := table([ "title" = "Beowulf", "language" = "Anglo-Saxon", "author" = JSON:-null ]);
Beowulf≔table⁡title=Beowulf,author=JSON:−null,language=Anglo-Saxon
JSON:-ToString( Beowulf );
{"author": null, "language": "Anglo-Saxon", "title": "Beowulf"}
The JSON[null] command was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
See Also
NULL
Download Help Document
What kind of issue would you like to report? (Optional)