Functions
json.h File Reference

JSON encoding. More...

Functions

VTM_API int vtm_json_encode_ds (vtm_dataset *ds, struct vtm_buf *buf)
 

Function Documentation

VTM_API int vtm_json_encode_ds ( vtm_dataset ds,
struct vtm_buf buf 
)

Encodes the content of a dataset as JSON.

Parameters
dsthe input dataset
[out]bufholds the JSON string
Returns
VTM_OK if the encoding was successful
VTM_ERROR if an error occured