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

Developer

API Reference

IJSONTREE_GETINT()

Brew Release
Brew MP 1.0.2
Description
This function retrieves the integer value from the given JSValue of JSONNumber type. The underlying number must be in the range of C "int" type
Params
me
[]:
pointer to the IJSONTree Interface object
pjv
[]:
JSValue of type JSONNumber
pi
[]:
filled with number
Interface
Prototype
  •    int IJSONTree_GetInt(IJSONTree *me, JSValue *pjv, int *pn);
        
Return
  • AEE_SUCCESS: on success IJSONTree_EBADTYPE: if JSValue is wrong type IJSONTree_EOVERFLOW: if number is not in valid range of C "int" type IJSONTree_EFAILED: failed to parse or other internal error