Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

ServiceDescription
ADDAddAdds a JSON Entity to a JSON array.
ADDVALUEAddValueAdds a value to a JSON array.
CONTAINSContainsDetermines if a JSON object contains the given member or if a JSON array contains the given index.
GETGetReturns a descendant JSON Entity within a given JSON Entity.
GETCOUNTGetCountReturns the number of members in a JSON object or elements in a JSON array.
GETMEMBERSGetMembersReturns a list of a JSON object's members.
GETVALUEGetValueReturns a descendant value within a given JSON Entity.
NEWNewCreates a new JSON Entity.
PARSEParseParses a standardized JSON string into a new JSON Entity.
RELEASEReleaseDeallocates a JSON Entity from memory.
REMOVERemoveRemoves a member from a JSON object or an element from a JSON array.
REMOVEALLRemoveAllRemoves all members from a JSON obect or all elements from a JSON array.
SETSetSets a member within a JSON object or element within a JSON array to the given JSON Entity.
SETVALUESetValueSets a member within a JSON object or element within a JSON array to the given value.
STRINGIFYStringifyFormats the given JSON Entity into a standardized JSON string.
TYPETypeReturns a JSON Entity's type.

Click on the service above to read more details.

Acknowledgments

SRP_JSON is a wrapper around JSON-CPP.