GitHub - niradler/json-cli-tool: Extract map and filter json output.
source link: https://github.com/niradler/json-cli-tool
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
JSON CLI Tool
Extract map and filter json output. (lightweight jq alternative)
Installation
npm i -g json-cli-tool
Usage
jc help
{json} | jc --path="names" --filter="name=jay" --map="name" {json} | jc --query=".names[]" // jmespath compatible {json} | jc keys {json} | jc values
echo '{"a":1,"b":2,"c":[1,2,3,4,5],"d":{"a":2,"b":3},"e":[{"a":1,"b":2,"c":[1,2,3,4,5],"d":{"a":2,"b":5}},{"a":2,"b":3,"c":[1,2,3,4,5],"d":{"a":2,"b":4}}]}' | jc --p="e" --m="a,b" --f="a=2" # { a: 2, b: 3 }
curl --location --request GET 'http://www.7timer.info/bin/api.pl?lon=113.17&lat=23.09&product=astro&output=json' | jc --path 'dataseries' --map 'temp2m,prec_type' --filter 'temp2m=29'
Recommend
-
8
Jmeter-Extract Data from JSON using Json Extractor Reading Time: 3 minutes Jmeter is used to perform load testing. I have already discussed
-
4
Extract the non-empty values from the regex network output to python advertisements I have a column of type numpy.ndarray which looks like:
-
4
Python's filter(): Extract Values From Iterables by
-
9
Extract data from Json array response and use in request. Reading Time: 3 minutes Most of us are using postman for automating the Rest API. In automating the requests, we need to pass the data in many requests...
-
30
Toutatis Toutatis is a tool that allows you to extract information from instagrams accounts such as e-mails, phone numbers and more For BTC Donations : 1FHDM49QfZX6pJmhjLE5tB2K6CaTLMZpXZ
-
8
Differential D108441 [clang] Fix JSON AST output when a filter is usedClosed
-
7
Occasionally, columns contain pesky JSON objects that require parsing. Work smarter, not harder– learn how we can create features from a column of JSON values! Glossary Why does data get stored as JSON?
-
6
Serverless Auth Simple authentication mechanism base on aws serverless services (Dynmodb, Lambda, ApiGateway) Features Basic user authentication with email/password Passwordless user authentication with emai...
-
5
function lifecycle Control the before and after of running a function, can be used for validation, caching, data mutation and more. Features Wraps functions to create a lifecycle of before and after Supports...
-
6
SatIntel . . . . . . . . . . . . . . ______ . . //////// ....
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK