[#BloombergLP-bdljsn-JsonNumber-2constructor-05e1]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonNumber.adoc[JsonNumber]::JsonNumber
:relfileprefix: ../../../
:mrdocs:

Create a `JsonNumber` having the same value and allocator as `text`&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;jsonnumber&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
JsonNumber(xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;bsl::string&gt;] text);
----

== Description

The contents of the `value` string becomes unspecified but valid, and its allocator remains unchanged&period; The behavior is undefined unless `isValidNumber(text)` is `true`&period; See &lcub;JSON Textual Specification&rcub;&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *text*
| JSON number text to move from
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
