5.5.4 Dicts, strings and JSON
The JSON representation could benefit significantly from the new features. In due time we plan to provide an set of alternative predicates and options to existing predicates that can be used to exploit the new types. We propose the following changes to the data representation:
- Instead of using
json(KeyValueList)
, the new interface will translate JSON objects to a dict. The type of this dict will bejson
. - String values in JSON will be mapped to strings.
- The values
true
,false
andnull
will be represented as atoms.