Page History
...
SRP_JSON provides the following services. The first parameter is always a handle to an entity. Sometimes this handle is just an empty or unassigned variable, such as when you want to create a new JSON Entity. All other times the handle references a JSON Entity already in memory. The rest of the parameters depend upon the service in question, and if you are using the latest SRP Editor you'll see the tooltips change once you select a service--making it easy to know how to use it.
Service | Description |
---|---|
ADDAdd | Adds a JSON Entity to a JSON array. |
ADDVALUEAddValue | Adds a value to a JSON array. |
CONTAINSContains | Determines if a JSON object contains the given member or if a JSON array contains the given index. |
GETGet | Returns a descendant JSON Entity within a given JSON Entity. |
GETCOUNTGetCount | Returns the number of members in a JSON object or elements in a JSON array. |
GETMEMBERSGetMembers | Returns a list of a JSON object's members. |
GETVALUEGetValue | Returns a descendant value within a given JSON Entity. |
NEWNew | Creates a new JSON Entity. |
PARSEParse | Parses a standardized JSON string into a new JSON Entity. |
RELEASERelease | Deallocates a JSON Entity from memory. |
REMOVERemove | Removes a member from a JSON object or an element from a JSON array. |
REMOVEALLRemoveAll | Removes all members from a JSON obect or all elements from a JSON array. |
SETSet | Sets a member within a JSON object or element within a JSON array to the given JSON Entity. |
SETVALUESetValue | Sets a member within a JSON object or element within a JSON array to the given value. |
STRINGIFYStringify | Formats the given JSON Entity into a standardized JSON string. |
TYPEType | Returns a JSON Entity's type. |
Click on the service above to read more details.
Acknowledgments
SRP_JSON is a wrapper around JSON-CPP.