Create a Json object holding the specified numeric value.

Synopsis

Declared in <bdljsn_json.h>

explicit
Json(
    int value,
    bslma::Allocator* basicAllocator = 0);

Description

Create a Json object having the type JsonNumber and the the specified value. Optionally specify the basicAllocator used to supply memory. If basicAllocator is not specified, the currently installed default allocator is used to supply memory.

Parameters

Name

Description

value

numeric value to store

basicAllocator

memory allocator; null uses the default

Created with MrDocs