skip to Main Content

Update a json file using csv file contents

I've 2 files: changes.csv and sample.json. My csv file is like following: header "a", "b" "a11","b1" "a22","b2" "a33","b3" and the json file is like: [ {"a":"a1","b":"b1"}, {"a":"a2","b":"b2"}, {"a":"a3","b":"b3"}, {"a":"a4","b":"b4"} ] I need to write a jq command, which make changes…

VIEW QUESTION

Split large JSON file into smaller files

I have a need to split very large json file (20GB) into multiple smaller json files (Say threshold is 100 MB). The Example file layout looks like this. file.json [{"name":"Joe", "Place":"Denver", "phone_number":["980283", "980284", "980285"]},{"name":"kruger", "Place":"boston", "phone_number":["980281", "980282", "980283"]},{"name":"Dan", "Place":"Texas","phone_number":["980286", "980287",…

VIEW QUESTION
Back To Top
Search