jq icon indicating copy to clipboard operation
jq copied to clipboard

"Invalid Numeric Literal" on colon following a single-quoted string (incorrect parser error message)

Open bartgrantham opened this issue 10 years ago • 42 comments

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:

$ echo "{'foo':'bar'}" | jq .foo
parse error: Invalid numeric literal at line 1, column 7

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.

bartgrantham avatar Jul 24 '14 04:07 bartgrantham