SDK Json Parser API documentation
Version: stable
<dmsdk/dlib/json.h>
API for platform independent parsing of json files
FUNCTION | |
---|---|
Free() | deallocates json document |
Parse() | parse json data |
Parse() | parse json data |
Free(document)
Deallocates a previously created dmJson::Document
PARAMETERS
document |
dmJson::Document* The document |
Parse(buffer,buffer_length,document)
Parses an (utf-8) string into a dmJson::Document The document must later be freed with dmJson::Free()
PARAMETERS
buffer |
const char* The input data (Utf-8) |
buffer_length |
uint32_t The size of the json buffer (in bytes) |
document |
dmJson::Document* The output document |
RETURNS
dmJson::RESULT_OK |
on success |
Parse(buffer,document)
Parses a null terminated (utf-8) string into a dmJson::Document The document must later be freed with dmJson::Free()
PARAMETERS
buffer |
const char* The input data (Utf-8) |
document |
dmJson::Document* The output document |
RETURNS
dmJson::RESULT_OK |
on success |