• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

7.3 http_json.pl: HTTP JSON Plugin module
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog HTTP support
        • Supporting JSON
          • http_json.pl: HTTP JSON Plugin module
            • http_read_json/2
            • http_read_json/3
            • http_read_json_dict/2
            • http_read_json_dict/3
            • reply_json/1
            • reply_json/2
            • reply_json_dict/1
            • reply_json_dict/2
Availability::- use_module(library(http/http_json)).
Source[det]http_read_json(+Request, -JSON)
[det]http_read_json(+Request, -JSON, +Options)
Extract JSON data posted to this HTTP request. Options are passed to json_read/3. In addition, this option is processed:
json_object As+
One of term (default) to generate a classical Prolog term or dict to exploit the SWI-Prolog version 7 data type extensions. See json_read_dict/3.
Errors
- domain_error(mimetype, Found) if the mimetype is not known (see json_type/1).
- domain_error(method, Method) if the request is not a POST or PUT request.
ClioPatria (version V3.0.0-338-gc91dba5-DIRTY)