5.5 Integration of strings and dicts in the libraries
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • SWI-Prolog extensions
        • Integration of strings and dicts in the libraries
          • Dicts and option processing
          • Dicts in core data structures
          • Dicts, strings and XML
          • Dicts, strings and JSON
          • Dicts, strings and HTTP
    • Packages

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 be json.

  • String values in JSON will be mapped to strings.

  • The values true, false and null will be represented as atoms.