Quantcast
Channel: VFPX
Viewing all articles
Browse latest Browse all 3798

Commented Unassigned: nfjsonread breaks when an empty kv is passed [43497]

$
0
0
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 **


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 ).



Viewing all articles
Browse latest Browse all 3798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>