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

Developer

API Reference

JSONGEN_GETJSON()

Brew Release
Brew MP 1.0.2
Description

When you are done specifying the JSON to be generated, call this function to complete the generation and return the JSON string.
Params
pj
[]:
JSON generator
ppcszJSON
[]:
filled with JSON string pointer
pnSize
[]:
size of the JSON string
Interface
Prototype
  •    int JSONGen_GetJSON(JSONGen *pj, const char **ppcszJSON, int *pnSize);
    
Return
  • JSONGEN_SUCCESS: on success JSONGEN_ERROR: if empty JSON buffer or other error