Create a Json object holding the specified array.

Synopsis

Declared in <bdljsn_json.h>

Json(
    JsonArray const& array,
    bslma::Allocator* basicAllocator = 0);

Description

Create a Json object having the type JsonArray/`JsonObject`/ JsonNumber and the value of the specified array/`object`/`number`. Optionally specify basicAllocator used to supply memory. If basicAllocator is not specified, the currently installed default allocator is used to supply memory.

Parameters

Name

Description

array

array value to store

basicAllocator

memory allocator; null uses the default

Created with MrDocs