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

Developer

API Reference

JSONPARSER_OBJECTNEXT()

Brew Release
Brew MP 1.0.2
Description
Given the enumeration state, reads the key and value ids of the current pair and updates the enumeration state to next pair or end.
Params
pj
[]:
JSON context
pst
[]:
current enumeration state. On success, is updated to next pair or end
pidKey
[]:
Key ID of the current pair
pidValue
[]:
Value ID
Interface
Prototype
  •    int JSONParser_ObjectNext(JSONParser *pj, JSONEnumState *pst, JSONID *pidKey,
                                 JSONID *pidValue);
    
Return
  • JSONPARSER_SUCCESS : success -- pidKey and pidValue are updated with relevant IDs JSONPARSER_ENOMORE : if no more items to enumarate JSONPARSER_ERROR : for all other errors