antonmedv/fx

Ignore all content until the first { character

Robert-M-Muench opened this issue · 1 comments

Sometimes JSON files contain prolog content generated by external tools (even this is not standard) and on those files FX fails currently with an error.

It would be nice to just ignore everything until the first { is seen.

This is possible, but json file can start not only with a {, but also with [. And all of next files are json:

null
true
false
"str"
42