mcorest_api_json_read_array_begin

Begin reading a JSON array.

For an overview see page mcorest_api_json_read_*

Prototype

     
    MCO_RET mcorest_api_json_read_array_begin( mcorest_api_json_read_ctx_t *ctx );
 

Arguments

ctx Pointer to the JSON read context structure

Description

This function begins reading a JSON array.

Return Codes

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

Example

 
    mcorest_api_json_read_ctx_t jctx;
    MCOREST_API_JSON_TKN_TYPE tkn_type;
    ...
 
    if (MCO_S_OK == mcorest_api_json_next_token(&jctx, MCOREST_API_JSON_TKN_ARRAY_BGN, &tkn_type)) 
    {
        if (MCO_S_OK == mcorest_api_json_read_array_begin(&jctx)) 
        {
            /* Read array elements one by one */
        }
    }
     

Files

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