value::array Method

Create an empty JSON array

static _ASYNCRTIMP json::value __cdecl array();

static _ASYNCRTIMP json::value __cdecl array(
   size_t size
);

static _ASYNCRTIMP json::value __cdecl array(
   const json::value::element_vector &elements
);

Parameters

  • size
    The initial number of elements of the JSON value

  • elements
    A vector of JSON values,

Return Value

An empty JSON array value

Requirements

Header: json.h

Namespace: web::json

See Also

Reference

value Class