mcorest_api_json_read_array_end

Finish reading the JSON array.

For an overview see page mcorest_api_json_read_*

Prototype

    MCO_RET mcorest_api_json_read_array_end( mcorest_api_json_read_ctx_t *ctx );

Arguments

ctx
Pointer to the JSON read context structure.

Description

This function finishes reading the 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_END, &tkn_type))
    {
        if (MCO_S_OK == mcorest_api_json_read_array_end(&jctx))
        {
            /* The array has been read completely, proceed to the next element */
        }
    }

Files

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