protocol
json_path_protocol
JSONPath parser, generator, and evaluator protocol.
logtalk_load(json_path(loader))staticPublic predicates
parse/2
Parses a JSONPath query from the given source (codes(Codes), chars(Chars), or atom(Atom)) into a parsed query term. Fails if the query cannot be parsed.
staticparse(Source,Query)parse(++compound,--compound) - zero_or_one_or_errorSource is a variable:instantiation_errorSource is neither a variable nor a valid source:domain_error(json_path_source,Source)generate/2
Generates a JSONPath query using the representation specified in the first argument (codes(Codes), chars(Chars), or atom(Atom)) for the parsed query term in the second argument.
staticgenerate(Sink,Query)generate(+compound,++compound) - one_or_errorSink is a variable:instantiation_errorQuery is neither a variable nor a valid parsed query term:domain_error(json_path_query,Query)Sink cannot be generated:domain_error(json_path_sink,Sink)evaluate/3
Evaluates a parsed JSONPath query against a JSON term and returns the selected values.
staticevaluate(Query,JSON,Values)evaluate(++compound,++term,--list) - zero_or_one_or_errorQuery is a variable:instantiation_errorJSON is a variable:instantiation_errorQuery is neither a variable nor a valid parsed query term:domain_error(json_path_query,Query)paths/3
Evaluates a parsed JSONPath query against a JSON term and returns the selected normalized paths.
staticpaths(Query,JSON,Paths)paths(++compound,++term,--list) - zero_or_one_or_errorQuery is a variable:instantiation_errorJSON is a variable:instantiation_errorQuery is neither a variable nor a valid parsed query term:domain_error(json_path_query,Query)nodes/3
Evaluates a parsed JSONPath query against a JSON term and returns the selected nodes as node(Path, Value) terms.
staticnodes(Query,JSON,Nodes)nodes(++compound,++term,--list) - zero_or_one_or_errorQuery is a variable:instantiation_errorJSON is a variable:instantiation_errorQuery is neither a variable nor a valid parsed query term:domain_error(json_path_query,Query)query/3
Parses a JSONPath query source and evaluates it against a JSON term, returning the selected values.
staticquery(Source,JSON,Values)query(++compound,++term,--list) - zero_or_one_or_errorSource is a variable:instantiation_errorJSON is a variable:instantiation_errorSource is neither a variable nor a valid source:domain_error(json_path_source,Source)Protected predicates
(none)
Private predicates
(none)
Operators
(none)