Add info on demoting ND array to a 1-D optimized array when singleton dimension

This commit is contained in:
Qianqian Fang 2022-05-12 00:04:18 -04:00 committed by GitHub
parent c72bebb0f0
commit 6c1e2f641f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,9 @@ The library uses the following mapping from JSON values types to BJData types ac
In the reversed direction, when `to_bjdata` detects a JSON object in the
above form, it automatically converts such object into a BJData ND-array
to generate compact output.
to generate compact output. The only exception is that when the 1-D dimensional
vector stored in `"_ArraySize_"` contains a single integer, or two integers with
one being 1, a regular 1-D optimized array is generated.
The current version of this library has not yet supported automatic
recognition and conversion from a nested JSON array input to a BJData ND-array.