Closed bartgrantham closed 1 month ago
Unrelated to this issue but jq has text manipulation support and a fromjson
function so one can do something like:
$ echo "{'foo':'bar'}" | jq -R "gsub(\"'\"; \"\\\"\") | fromjson"
{
"foo": "bar"
}
Glorious day! The decade-old issue is resolved!
EDIT (20150416): I KNOW IT'S INVALID JSON. THE BUG IS ABOUT THE NONSENSICAL ERROR MESSAGE
I get this from absent-mindedly and incorrectly using single-quotes:
This is under 1.3. Trying to reproduce under 1.4, but after 5 minutes of trying to build from source I'm just going to submit this and move on.