API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IJSONTREE_GETNUMENTRIES()

Brew Release
Brew MP 1.0.2
Description
Use this function to find out the size of a given array or object. Array size is number of elements and size of object is number of pairs.
Params
me
[]:
pointer to the IJSONTree Interface object
pjvArrayOrObj
[]:
JSValue must be an array or object
pnEntries
[]:
filled with number of items in the array/object
Interface
Prototype
  •    int IJSONTree_GetNumEntries(IJSONTree *me, JSValue *pjvArrayOrObj, int *pnEntries);
        
Return
  • AEE_SUCCESS: on success IJSONTree_EBADTYPE: if JSValue is not of JSONObject or JSONArray