BloombergLP::bdljsn::Json_Initializer::Json_Initializer

Constructors

Synopses

Declared in <bdljsn_json.h>

Create a Json_Initializer object containing a JsonNull in the internal variant.

Json_Initializer();
» more...

Create a Json_Initializer object containing the specified value.

Json_Initializer(bdldfp::Decimal64 value);
» more...

Create a Json_Initializer object containing the specified value.

Json_Initializer(double value);
» more...

Create a Json_Initializer object containing the specified value.

Json_Initializer(float value);
» more...

Create a Json_Initializer object containing an initializer list with the value of the specified il.

Json_Initializer(std::initializer_list<Json_Initializer> il);
» more...

Create a Json_Initializer object containing a pointer to the specified json.

Json_Initializer(Json const& json);
» more...

Create a Json_Initializer object containing a pointer to the specified jArr.

Json_Initializer(JsonArray const& jArr);
» more...

Create a Json_Initializer object containing a JsonNull in the internal variant.

Json_Initializer(JsonNull const& value);
» more...

Create a Json_Initializer object containing a pointer to the specified jNum.

Json_Initializer(JsonNumber const& jNum);
» more...

Create a Json_Initializer object containing a pointer to the specified jObj.

Json_Initializer(JsonObject const& jObj);
» more...

Create a Json_Initializer object containing a string_view referring to the contents of the specified string.

Json_Initializer(bsl::string const& string);
» more...

Same as the related overload above for Json_Initializer.

Json_Initializer(std::pmr::string const& string);
» more...

Same as the related overload above for Json_Initializer.

Json_Initializer(std::string const& string);
» more...

Create a Json_Initializer object containing a string_view containing the specified sv.

Json_Initializer(std::string_view const& sv);
» more...

Create a Json_Initializer object containing a string_view referring to the null-terminated sequence pointed to by the specified string.

Json_Initializer(char const* string);
» more...

Create a Json_Initializer holding the specified boolean value.

template<class t_BOOL>
Json_Initializer(t_BOOL value)
requires bsl::is_same<t_BOOL, bool>::value;
» more...

Create a Json_Initializer holding the specified integral value.

template<class t_INTEGRAL>
Json_Initializer(t_INTEGRAL value)
requires bsl::is_integral<t_INTEGRAL>  ::value
                               && !bsl::is_same<t_INTEGRAL, bool>::value;
» more...

Parameters

NameDescription
valuenumeric value to store
ilinitializer-list of values
jsonJSON value
jArrarray value
jNumnumber value
jObjobject value
stringstring value
svstring view