The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

parser.json

Exports a selection of functions for dealing with JSON structures.

jq

Description

Performs a JSONPath query (similar in concept to XPath) against the given JSON document. JSONPath is described at http://goessner.net/articles/JsonPath/.

Usage

<jsonpath query> <document string>

Examples

:emphasize-lines: 2

(jq "$.name" "{\"name\": \"Robert\", \"age\": 70 }")
"Robert"