JSON (JavaScript Object Notation) is a common data interchange format. This package provides two methods, toJSON and fromJSON, for converting Macaulay2 things to valid JSON data and vice versa.
i1 : toJSON {hashTable{"foo" => "bar"}, 1, 3.14159, true, false, nil} o1 = [{"foo": "bar"}, 1, 3.14159, true, false, null]
i2 : fromJSON oo o2 = {HashTable{"foo" => bar}, 1, 3.14159, true, false, nil} o2 : List
This documentation describes version 0.3 of JSON.
The source code from which this documentation is derived is in the file JSON.m2. The auxiliary files accompanying it are in the directory JSON/.
The object JSON is a package.