#87·gron

Inconsistency in ungron for invalid inputs

Author: xonixxCreated Mar 16, 2021Updated Jul 6, 2023

Hi!

This works (note conflicting field "a"):

$ printf 'json.a="STR";\njson.a=1;\n' | gron -u
{
  "a": 1
}

this no:

$ printf 'json.a=1;\njson.a="STR";\n' | gron -u
failed to merge statements: unexpected data type for merge

I would assume the two should give same result.

$ gron --version
gron version 0.6.1