antonmedv/fx

SyntaxError: invalid character 'x' in string escape code at parse (native)

mmoskal opened this issue · 1 comments

fx seems to print \u0000 internally as \x00 and then the interpreter gets confused about it:

[15:18 mp3]$ cat q.json
{
  "foo": [ { "a":  "bar\u0000Z" } ]
}
[15:18 mp3]$ fx q.json '.foo[]'
SyntaxError: invalid character 'x' in string escape code at parse (native)
[15:18 mp3]$ fx --version
24.1.0

(I mostly use it for interactive viewing of large json - it works wonderful, thank you!)

Now it should be fixed in master.