JSONPath parsing, alongside parse validation and parsed path -> string functions.
JSONPath parsing, alongside parse validation and parsed path -> string functions.
(is-parse-failure? x)
Returns true if the given object is error data from a parse failure, false otherwise.
Returns true if the given object is error data from a parse failure, false otherwise.
(parse jsonpath-str)
Given a JSON-path, parse it into data. Returns a vector of parsed JSON-paths, or the first error map if one or more paths are invalid.
Given a JSON-path, parse it into data. Returns a vector of parsed JSON-paths, or the first error map if one or more paths are invalid.
(parse-first jsonpath-str)
Same as parse
, but returns the first parsed JSON-path, or nil
if the paths are invalid.
Same as `parse`, but returns the first parsed JSON-path, or `nil` if the paths are invalid.
(path->string parsed-path)
Stringify a parsed path back into a JSONPath string, using brackets for all keys.
Stringify a parsed path back into a JSONPath string, using brackets for all keys.
(test-strict-path parsed-path)
Test if a parsed path is valid in strict mode. If so, returns nil; if not, then returns the first non-strict element, which is any one of the following:
Test if a parsed path is valid in strict mode. If so, returns nil; if not, then returns the first non-strict element, which is any one of the following: - Recursive descent operator ("..") - Array slicess - Negative array indices
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close