-- Leo's gemini proxy

-- Connecting to freeshell.de:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini;lang=en-GB

ajson


> Executes JSONPath on JSON objects.

More information.


Read JSON from a file and execute a specified JSONPath expression:

ajson '{$..json[?(@.path)]}' {path/to/file.json}

Read JSON from stdin and execute a specified JSONPath expression:

cat {path/to/file.json} | ajson '{$..json[?(@.path)]}'

Read JSON from a URL and evaluate a specified JSONPath expression:

ajson '{avg($..price)}' '{https://example.com/api/}'

Read some simple JSON and calculate a value:

echo '{3}' | ajson '{2 * pi * $}'


> Copyright © 2014—present the tldr-pages team and contributors.

> This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY



-- Response ended

-- Page fetched on Tue May 21 04:58:19 2024