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

Developer

API Reference

JSONPARSER_OBJECTLOOKUP()

Brew Release
Brew MP 1.0.2
Description
Given an Object ID and a key name, finds the matching key and if found, updates the key and value IDs
Params
pj
[]:
JSON context
idObject
[]:
JSONObject ID
pszName
[]:
JSON string to be looked up
pidKey
[]:
Key ID of the current pair
pidValue
[]:
Value ID
Interface
Prototype
  •    int   JSONParser_ObjectLookup(JSONParser *pj, JSONID idObject,
                               const char *pszName, int nLen,
                               JSONID *pidKey, JSONID *pidValue);
                               
Return
  • JSONPARSER_SUCCESS on success, otherwise JSONPARSER_ERROR On success, pidKey and pidValue are updated with relevant IDs