Previously, all arrays were assumed to be arrays of objects. As a result, arrays of strings, numbers, or booleans would be incorrectly handled. String array items would each be converted to an array of characters, and boolean or number array items would be converted to empty objects.
This fix simply uses the "primitive" array itself as the converted value.
Previously, all arrays were assumed to be arrays of objects. As a result, arrays of strings, numbers, or booleans would be incorrectly handled. String array items would each be converted to an array of characters, and boolean or number array items would be converted to empty objects.
This fix simply uses the "primitive" array itself as the converted value.
Specifically, given the following as input...
...the following would have been output...
With this fix, the output is now...