mcorest_api_json_write_object_end

End a JSON object.

For an overview see page mcorest_api_json_write_*

Prototype

    MCO_RET mcorest_api_json_write_object_end( mcorest_api_json_write_ctx_t *ctx );

Arguments

ctx
Pointer to the JSON write context structure.

Description

This function ends a JSON object, outputting the closing brace.

Return Codes

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

Example

    static void print_json_object(mcorest_api_json_write_ctx_t *jctx )
    {
        mcorest_api_json_write_object_begin(jctx);
        ...
        mcorest_api_json_write_object_end(jctx);
        ...
    }

Files

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