Hi,
when we pass an empty key-valye collection to nfjsoncreate I get an error. The input data is similar to this:
```
"nfjson_kv_collection" : {
"collectionitems" : [ ]
}
```
The error rises in function reviveCollection at line
```
For T = 1 To Alen(m.tv.collectionItems)
If m.keyValColl
esteval = m.tv.collectionItems(m.T).Value
```
Looks like collectionItems has a not-zero size even if it's empty
Comments: ** Comment from web user: mplazac **
when we pass an empty key-valye collection to nfjsoncreate I get an error. The input data is similar to this:
```
"nfjson_kv_collection" : {
"collectionitems" : [ ]
}
```
The error rises in function reviveCollection at line
```
For T = 1 To Alen(m.tv.collectionItems)
If m.keyValColl
esteval = m.tv.collectionItems(m.T).Value
```
Looks like collectionItems has a not-zero size even if it's empty
Comments: ** Comment from web user: mplazac **
Hi, Thanks for the report.
I'll work on a unified solution for representiing zero item collections and zero item arrays [] ( wich currently works using the noNullArrayItems flag ).