Open davidpelfree opened 3 years ago
The bug is when merging 2 numbers from 2 gron files / lines.
Try this:
echo -e "json.a=1;\njson.a=2;" | gron -u
You will fail with:
failed to merge statements: unexpected data type for merge
My fix:
json.Number
case
After my fix you will see this output:
{ "a": 2 }
The bug is when merging 2 numbers from 2 gron files / lines.
Try this:
You will fail with:
My fix:
json.Number
, I have added it to thecase
statement of other number types.After my fix you will see this output: