JKISoftware / JKI-JSON-Serialization

JSON Serialization & Deserialization Library for LabVIEW
http://jki.net/tools#json
BSD 3-Clause "New" or "Revised" License
25 stars 10 forks source link

Flattening empty variants (to null) within an array produces excessive indentation in the output string #6

Closed JKSH closed 8 years ago

JKSH commented 8 years ago

(LabVIEW 2013 SP1 + JKI JSON Serialization v1.0.1.18)

Suppose I provide this JSON string:

[
    "Hello",
    42,
    false,
    null,
    {
        "nested?": true
    }
]

Unflattening and then re-flattening it (with Multiline==TRUE) produces

[
    "Hello",
    42,
    false,
        null,
    {
        "nested?":true
    }
]

Notice that the "null" has too much indentation.

tmaila commented 8 years ago

Fixed in 1.0.5