value::array 方法

创建一个空 JSON 数组

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
);

参数

  • size
    JSON 值的初始元素数

  • elements
    JSON 值的一个向量,

返回值

空 JSON 数组值

要求

**标头:**json.h

**命名空间:**web::json

请参见

参考

value 类