Open JKSH opened 7 years ago
Version 1.1.10.37
For fun, I unflattened the convoluted document from my comment in #26:
{ "": { "": [ { "": "", "txDefinition": { "repeatRate": 0, "canPort": 0, "messageId": 0 } } ] } }
When I re-flatten this again, I get:
[ [ [ [ "", { "repeatRate":0, "canPort":0, "messageId":0 } ] ] ] ]
Objects have been transformed into arrays.
Also, notice the weird indentation of the innermost and 2nd-innermost arrays at the output.
The output is correct if I replace the empty names ("") with non-empty ones.
""
See https://stackoverflow.com/questions/33254385/can-a-json-name-value-pair-have-an-empty-name -- Empty strings are valid names for object members.
@JKSH For what it's worth, I think we've resolved the "weird indentation" issue #31
Version 1.1.10.37
For fun, I unflattened the convoluted document from my comment in #26:
When I re-flatten this again, I get:
Objects have been transformed into arrays.
Also, notice the weird indentation of the innermost and 2nd-innermost arrays at the output.
The output is correct if I replace the empty names (
""
) with non-empty ones.See https://stackoverflow.com/questions/33254385/can-a-json-name-value-pair-have-an-empty-name -- Empty strings are valid names for object members.