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

Developer

API Reference

JSONPARSER_GETINT()

Brew Release
Brew MP 1.0.2
Description
Given JSONNumber, retrieve its integer value. The underlying number must be an integer in the range of C int data type
Params
pj
[]:
JSON context
id
[]:
JSONNumber ID
pi
[]:
filled with integer value at id
Interface
Prototype
  •    int  JSONParser_GetInt (JSONParser *pj, JSONID id, int *pi);
                            
Return
  • JSONPARSER_SUCCESS : on success JSONPARSER_EOVERFLOW : if number is out of range of C "int" type otherwise JSONPARSER_ERROR