◆ fiftyoneDegreesJsonDocumentEnd()
| void fiftyoneDegreesJsonDocumentEnd | ( | fiftyoneDegreesJson * | json | ) |
Writes the end of the JSON document characters to the buffer in json.
- Parameters
-
- json - data structure
\r\n
51Degrees Device Detection C/C++
4.5
JSON methods.
Contains common methods to create JSON documents, add properties, add either single or list values to properties. String values are escaped to comply with the JSON specification.
A single data structure is used with members for a) the output buffer, and b) the reference data.
The output buffer is represented as a pointer and a length. An additional member is used to record the number of characters that would be needed to complete the creation of a valid JSON response. This can be used by the caller to increase the buffer size if not big enough and call the related methods a subsequent time.
Reference data for the property being added, the values being added, and a collection of strings is also provided.
| struct | fiftyoneDegreesJson
Structure used to populated a JSON string for all required properties and values. More...
|
| void | fiftyoneDegreesJsonDocumentStart (fiftyoneDegreesJson *json)
Writes the start of the JSON document characters to the buffer in json. More...
|
| void | fiftyoneDegreesJsonDocumentEnd (fiftyoneDegreesJson *json)
Writes the end of the JSON document characters to the buffer in json. More...
|
| void | fiftyoneDegreesJsonPropertyStart (fiftyoneDegreesJson *json)
Writes the start of the property in json->property to the buffer in json. More...
|
| void | fiftyoneDegreesJsonPropertyEnd (fiftyoneDegreesJson *json)
Writes the end of the property in json->property to the buffer in json. More...
|
| void | fiftyoneDegreesJsonPropertyValues (fiftyoneDegreesJson *json)
Writes the values in the json->values list to the buffer in json. More...
|
| void | fiftyoneDegreesJsonPropertySeparator (fiftyoneDegreesJson *json)
Writes the a property separator to the buffer in json. More...
|
| void fiftyoneDegreesJsonDocumentEnd | ( | fiftyoneDegreesJson * | json | ) |
Writes the end of the JSON document characters to the buffer in json.
| void fiftyoneDegreesJsonDocumentStart | ( | fiftyoneDegreesJson * | json | ) |
Writes the start of the JSON document characters to the buffer in json.
| void fiftyoneDegreesJsonPropertyEnd | ( | fiftyoneDegreesJson * | json | ) |
Writes the end of the property in json->property to the buffer in json.
| void fiftyoneDegreesJsonPropertySeparator | ( | fiftyoneDegreesJson * | json | ) |
Writes the a property separator to the buffer in json.
| void fiftyoneDegreesJsonPropertyStart | ( | fiftyoneDegreesJson * | json | ) |
Writes the start of the property in json->property to the buffer in json.
| void fiftyoneDegreesJsonPropertyValues | ( | fiftyoneDegreesJson * | json | ) |
Writes the values in the json->values list to the buffer in json.