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

Developer

API Reference

IJSONTREE_OBJECTSET()

Brew Release
Brew MP 1.0.2
Description
This function sets the value for the given key.
If the the key is alread present, then the corresponding value is deleted (its memory freed) and replaced with the given JSValue.
If the key is not present, then a new key and value pair are added.
Params
me
[]:
pointer to the IJSONTree Interface object
pjvObj
[]:
JSValue object
cpszKey
[]:
key value for lookup
pjv
[]:
JSValue for the key
Interface
Prototype
  •    int IJSONTree_ObjectSet(IJSONTree *me, JSValue *pjvObj, const char *cpszKey,
                               JSValue *pjv);
     
Return
  • AEE_SUCCESS : on success IJSONTree_EBADTYPE : if pjvObj is not an object AEE_ENOMEMORY : if out of memory