Parse what is possibly invalid JSON with JQ Author: Victor Viale Published: October 3, 2025 · 0 min read echo "not json" | jq -R '. as $line | try (fromjson) catch $line # > "not json"