Quantcast
Channel: Active questions tagged jq - Stack Overflow
Viewing all articles
Browse latest Browse all 657

Can `jq` be forced` to take slightly malformed JSON body?

$
0
0

I like using :!pbpaste | jq to see my JSON objects when reading logs in vim.But it often throws the following error with the slightest inconvenience in the JSON body.

jq: parse error: Invalid numeric literal at line 1, column 26

Do you know of a way to simply ignore minor JSON mistakes when using jq?

Example JSON input:

[{'directoryOfServicesId': '32', 'externalId': '64'}]

Viewing all articles
Browse latest Browse all 657

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>