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

Developer

API Reference

IJSONTREE_OBJECTGETBYPOS()

Brew Release
Brew MP 1.0.2
Description
A JSON object is a set of key/value pairs. However, these pairs can also be accessed by their zero based index similar to arrays and this combined with the IJSONTree_GetNumEntries is the way to traverse all pairs in an object. This function, given an object and an index, retrieves the corresponding pair.
Params
me
[]:
pointer to the IJSONTree Interface object
pjvObj
[]:
JSValue object
nPos
[]:
zeo-based index at which to retrieve the pair
pjsp
[]:
resulting JSPair
Interface
Prototype
  •    int IJSONTree_ObjectGetByPos(IJSONTree *me, JSValue *pjvObj, int nPos,
                                    JSPair * pjsp);
     
Return
  • AEE_SUCCESS: success and ppjv is filled with corresponding JSValue IJSONTree_EBADTYPE: if pjvObj is not an object IJSONTree_EOUTOFRANGE: if nPos in out of range