nytlabs / gojsonexplode

a go library to flatten nested JSON
Apache License 2.0
38 stars 13 forks source link

Modified code so that if there is an empty array it will still return ... #6

Closed bmilesp closed 4 years ago

bmilesp commented 5 years ago

…the key with a null value, whereas before it excluded the key altogether.

eg: input json:

{"a":[{"b" : []}]}

will now return:

{"a.0.b":null}

instead of an empty result.