Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This program allows you to extract json from json. At the input, the first argument should be the path to the json file, the remaining arguments should be the keys in this json file. The output will be new json.

Use like this

./extract_json path/to/file.json first_key second_key

Example

data.json looks like this { "name": "John Doe", "age": 30, "email": "john.doe@example.com", "phones": ["123-456-7890", "987-654-3210"], "product": { "title": "qwe" } }

If run programm ./extract_json data.json name product

We will receive such data { "name": "John Doe", "product": { "title": "qwe" } }

About

Extract json from json

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages