Liking cljdoc? Tell your friends :D

com.yetanalytics.pathetic.parse

JSONPath parsing, alongside parse validation and parsed path -> string functions.

JSONPath parsing, alongside parse validation and parsed path -> string
functions.
raw docstring

instaparse->patheticclj/s

(instaparse->pathetic parsed)
source

is-parse-failure?clj/s

(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.
sourceraw docstring

jsonpath-instaparserclj/s

source

parseclj/s

(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.
sourceraw docstring

parse-firstclj/s

(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.
sourceraw docstring

path->stringclj/s

(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.
sourceraw docstring

test-strict-pathclj/s

(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:

  • Recursive descent operator ("..")
  • Array slicess
  • Negative array indices
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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close