JSONPath is a similar to XPath alternative for JSON.
The result can be a single value or a list of multiple values.
There are two notations, dot-notation:
$.book.title and bracket-notation:
$['book']['title'] (indexing starts from
0, negative indices are relative to the last element).
"author": "Michael Crichton"},
"title": "Plain Truth",
"author": "Jodi Picoult"}
"author": "Michael Crichton"} (JSON or String single value)
[1999,2000] (JSON or Int or Real list)
? (no such part)
Timeline (String) or
The default path (
$..*) will select all possible subparts (excluding the whole JSON value).
When you request the paths instead of values for the
$.book.* JSONPath, you will get the paths -in bracket notation- as a list of Strings:
?(expr)can be used to select contents with specific properties, for example
$..book[?(@.publisher)] selects the books that specify their publisher (
@ refers to the actual element).
You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.
A zipped version of the software site can be downloaded here.
Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to email@example.com, follow @NodePit on Twitter, or chat on Gitter!
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.