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

Developer

API Reference

JSONPARSER_ARRAYLOOKUP()

Brew Release
Brew MP 1.0.2
Description
Given an array ID and the 0-based index, finds the corresponding value and if found, updates the value ID
Params
pj
[]:
JSON context
idArray
[]:
Array ID
nIndex
[]:
0-based array index to lookup the value
pidValue
[]:
Value ID
Interface
Prototype
  •    int JSONParser_ArrayLookup(JSONParser *pj, JSONID idArray, int index,
                                  JSONID *pidValue);
                               
Return
  • JSONPARSER_SUCCESS on success, otherwise JSONPARSER_ERROR On success, pidValue is updated with relevant ID