category
http_json_term_helpers
Internal shared helpers for the repository-standard JSON term representation used by the HTTP, OpenAPI, and HTTP router libraries.
logtalk_load(http_core(loader))staticPublic predicates
(none)
Protected predicates
json_object_pairs/2
Converts between supported JSON object term representations and a flat list of key-value pairs.
staticjson_object_pairs(Object,Pairs)json_object_pairs(+term,-list(compound)) - zero_or_onejson_object_pairs(-term,+list(compound)) - onepairs_to_object/2
Converts a list of JSON object key-value pairs into the repository-standard object representation.
staticpairs_to_object(Pairs,Object)pairs_to_object(+list(compound),-term) - onecurly_pairs_to_list/2
Converts a nested curly-pair term into a plain list of pairs.
staticcurly_pairs_to_list(CurlyPairs,Pairs)curly_pairs_to_list(+compound,-list(compound)) - onelist_to_curly_pairs/2
Converts a plain list of pairs into the nested curly-pair representation.
staticlist_to_curly_pairs(Pairs,CurlyPairs)list_to_curly_pairs(+list(compound),-compound) - onepair_key_value/3
Normalizes supported key-value pair syntaxes into explicit key and value terms.
staticpair_key_value(Pair,Key,Value)pair_key_value(+compound,-term,-term) - onenormalize_json_value/2
Normalizes arbitrary JSON-like values into the repository-standard JSON representation, including booleans and null.
staticnormalize_json_value(Value,JsonValue)normalize_json_value(+term,-term) - onenormalize_json_pairs/2
Normalizes the values of a JSON object pair list into the repository-standard JSON representation.
staticnormalize_json_pairs(Pairs,JsonPairs)normalize_json_pairs(+list(compound),-list(compound)) - onePrivate predicates
(none)
Operators
(none)