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

Developer

API Reference

JSONGEN_PUTJSON()

Brew Release
Brew MP 1.0.2
Description

Serializes given JSON formatted data as is (no further JSON escaping). The separator insertion logic is invoked when necessary.
Examples: PutJSON: { "settings" : [2 followed by: PutDouble: 123.345 followed by: PutJSON: ]} generates: { "settings" : [2, 123.456 ]}
Params
pj
[]:
JSON generator
pszJSON
[]:
JSON formatted string
nLen
[]:
length of the string
Interface
Prototype
  •    int JSONGen_PutJSON(JSONGen *pj, const char *pszJSON, int nLen);   
    
Return
  • JSONGEN_SUCCESS: on success return JSONGEN_ERROR or other error code on failure