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

Developer

API Reference

IJSONTREE_SERIALIZE()

Brew Release
Brew MP 1.0.2
Description
This function serializes given JSValue to a JSON formatted string
Params
me
[]:
Pointer to the IJSONTree Interface object
pjv
[]:
Pointer to a JSValue Structure
psz
[]:
Buffer that holds the serialized JSON
nLen
[]:
Length of psz buffer
pnReq
[]:
on return, contains the size of a buffer necessary to hold the full JSON string. If nLen < *pnReq, the string has been truncated to fit into the buffer that was passed.
Interface
Prototype
  •    int IJSONTree_Serialize(IJSONTree *me, JSValue *pjv, char *psz,
                                             int nLen, int *pnReq);
        
Return
  • AEE_SUCCESS: on success or any of the declared error values