Write a double value.
MCO_RET mcorest_api_json_write_double( mcorest_api_json_write_ctx_t *ctx, double d );
| ctx | Pointer to the JSON write context structure |
| d | Double value to write |
This function writes a double value.
| MCO_S_OK = 0 | Success |
| MCO_E_REST_* | Any of the Web Services Error Codes |
static void print_double(mcorest_api_json_write_ctx_t *jctx,
double d)
{
...
mcorest_api_json_write_object_begin(jctx);
...
mcorest_api_json_write_key(jctx, "double_value");
mcorest_api_json_write_double(jctx, d);
...
mcorest_api_json_write_object_end(jctx);
...
}