Finish reading the JSON array.
MCO_RET mcorest_api_json_read_array_end( mcorest_api_json_read_ctx_t *ctx );
| ctx | Pointer to the JSON read context structure |
This function finishes reading the JSON array.
| MCO_S_OK = 0 | Success |
| MCO_E_REST_* | Any of the Web Services Error Codes |
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 */
}
}