Skip to content

files with many lines of JSON but some of them are in bad format. how to ignore those bad lines and continue to process the rest? #3011

Closed Answered by itchyny
bfzhao asked this question in Q&A
Discussion options

You must be logged in to vote

Use raw input option with fromjson filter.

jq -R 'fromjson? | [your query here]'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bfzhao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants