Arquivo JSON grande no Linux

# Install tool 
jqsudo apt-get install jq

# Pretty file
jq '.' myFile.json > myFileBeautified.json

# Delete JSON property
jq 'del(.[].field.fieldToDelete)' myFile.json > myFileBeautified.json

# Compact file
jq -c '.' myFileBeautified.json > myFileCleaned.json

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

This site uses Akismet to reduce spam. Learn how your comment data is processed.