Availability:
:- use_module(library(http/http_json)).
- json_object(+As)
- One of
term
(default) to generate a classical Prolog term ordict
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 method is not aPOST
,PUT
orPATCH
.