enso/distribution/lib/Standard
James Dunkerley ace459ed53
Let JavaScript parse JSON and write JSON ... (#3987)
Use JavaScript to parse and serialise to JSON. Parses to native Enso object.
- `.to_json` now returns a `Text` of the JSON.
- Json methods now `parse`, `stringify` and `from_pairs`.
- New `JSON_Object` representing a JavaScript Object.
- `.to_js_object` allows for types to custom serialize. Returning a `JS_Object`.
- Default JSON format for Atom now has a `type` and `constructor` property (or method to call for as needed to deserialise).
- Removed `.into` support for now.
- Added JSON File Format and SPI to allow `Data.read` to work.
- Added `Data.fetch` API for easy Web download.
- Default visualization for JS Object trunctes, and made Vector default truncate children too.

Fixes defect where types with no constructor crashed on `to_json` (e.g. `Matching_Mode.Last.to_json`.
Adjusted default visualisation for Vector, so it doesn't serialise an array of arrays forever.
Likewise, JS_Object default visualisation is truncated to a small subset.

New convention:
- `.get` returns `Nothing` if a key or index is not present. Takes an `other` argument allowing control of default.
- `.at` error if key or index is not present.
- `Nothing` gains a `get` method allowing for easy propagation.
2022-12-20 10:33:46 +00:00
..
Base/0.0.0-dev Let JavaScript parse JSON and write JSON ... (#3987) 2022-12-20 10:33:46 +00:00
Database/0.0.0-dev Let JavaScript parse JSON and write JSON ... (#3987) 2022-12-20 10:33:46 +00:00
Examples/0.0.0-dev Let JavaScript parse JSON and write JSON ... (#3987) 2022-12-20 10:33:46 +00:00
Geo/0.0.0-dev Let JavaScript parse JSON and write JSON ... (#3987) 2022-12-20 10:33:46 +00:00
Google_Api/0.0.0-dev Tidy Standard.Base part 4 of n ... (#3898) 2022-11-25 02:00:16 +00:00
Image/0.0.0-dev Let JavaScript parse JSON and write JSON ... (#3987) 2022-12-20 10:33:46 +00:00
Searcher/0.0.0-dev Some more tidying based on remaining tickets and PR comments. (#3946) 2022-12-06 18:35:18 +00:00
Table/0.0.0-dev Let JavaScript parse JSON and write JSON ... (#3987) 2022-12-20 10:33:46 +00:00
Test/0.0.0-dev Allow for dry-running benchmark test (#3989) 2022-12-16 15:35:49 +00:00
Visualization/0.0.0-dev Let JavaScript parse JSON and write JSON ... (#3987) 2022-12-20 10:33:46 +00:00