Read a numeric JSON value and convert it to a long.
MCO_RET mcorest_api_json_read_long( mcorest_api_json_read_ctx_t *ctx, long *val );
This function reads a numeric JSON value and converts it to a
long. It is a convenience wrapper formcorest_api_json_read_numeric()andmcorest_api_json_numeric_as_long().
static void read_long(mcorest_api_json_read_ctx_t *jctx,
long *pL)
{
...
mcorest_api_json_read_object_begin(jctx);
...
mcorest_api_json_read_long(jctx, pL);
...
mcorest_api_json_read_object_end(jctx);
...
}