# mcorest_api_json_write_array_begin

Start a JSON array.

### For an overview see page mcorest_api_json_write_*

### Prototype

        MCO_RET mcorest_api_json_write_array_begin( mcorest_api_json_write_ctx_t *ctx );

### Arguments

ctx | Pointer to the JSON write context structure

### Description

This function starts a JSON array, outputting the opening bracket.

### Return Codes

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

### Example

        static MCO_RET print_array(mcorest_api_json_write_ctx_t *jctx)
        {
            MCO_RET ret = MCO_S_OK;
            MCO_RET rc = MCO_S_OK;
            mco_cursor_t n_csr;
            Node nodeh;

            mcorest_api_json_write_key(jctx, "nodes");
            mcorest_api_json_write_array_begin(jctx);
            ...
            mcorest_api_json_write_array_end(jctx);
            return ret;
        }

### Files

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