I'm using jq to parse this file:
Successes: 0
Failures: 1
{
name: '',
success: false,
error: '',
data: {
video: ''
}
}
And obviously running jq < foo.json yields:
parse error: Invalid numeric literal at line 1, column 10
Because it can't parse
Successes: 0
Failures: 1
Is there way using Bash or jq itself to extract the remaining portion which is valid JSON?
{
name: '',
success: false,
error: '',
data: {
video: ''
}
}