mcorest_api_json_read_double

Read a numeric JSON value and convert it to a double.

For an overview see page mcorest_api_json_read_*

Prototype

    MCO_RET mcorest_api_json_read_double( mcorest_api_json_read_ctx_t *ctx, double *val );

Arguments

ctx
Pointer to the JSON read context structure.
val
The address of a double.

Description

This function reads a numeric JSON value and converts it to a double. It is a convenience wrapper for mcorest_api_json_read_numeric() and mcorest_api_json_numeric_as_double().

Return Codes

MCO_S_OK = 0
Success.
MCO_E_REST_*
Any of the Web Services Error Codes.

Files

Header file:
mcorestapi.h
Source file:
jsonrd.c
Library:
libmcorest.a