gron icon indicating copy to clipboard operation
gron copied to clipboard

Inconsistency in ungron for invalid inputs

Open xonixx opened this issue 4 years ago • 1 comments

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

xonixx avatar Mar 16 '21 14:03 xonixx

Works in https://github.com/adamritter/fastgron

adamritter avatar Jul 06 '23 08:07 adamritter