View source code
Display the source code in std/json.d from which this page was generated on
github.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Page wiki
View or edit the community-maintained wiki page associated with this page.
Struct std.json.JSONValue
JSON value node
Constructors
Name | Description |
---|---|
this
|
Constructor for . If is a
its value and type will be copied to the new .
Note that this is a shallow copy: if type is
or then only the reference to the data will
be copied.
Otherwise, must be implicitly convertible to one of the
following types: typeof(null) , string , ulong ,
long , double , an associative array V[K] for any V
and K i.e. a JSON object , any array or bool . The type will
be set accordingly.
|
Properties
Name | Type | Description |
---|---|---|
array
[get, set]
|
inout(JSONValue[]) |
Value getter/setter for .
|
floating
[get, set]
|
inout(double) |
Value getter/setter for .
|
integer
[get, set]
|
inout(long) |
Value getter/setter for .
|
isNull
[get]
|
bool |
Test whether the type is
|
object
[get, set]
|
inout(JSONValue[string]) |
Value getter/setter for .
|
str
[get, set]
|
inout(string) |
Value getter/setter for .
|
type
[get]
|
JSON_TYPE |
Returns the JSON_TYPE of the value stored in this structure.
|
type
[set]
|
JSON_TYPE |
Deprecated. Instead, please assign the value with the adequate
type to directly. This will be removed in
June 2015.
|
uinteger
[get, set]
|
inout(ulong) |
Value getter/setter for .
|
Methods
Name | Description |
---|---|
opApply
|
Implements the foreach interface for json arrays.
|
opApply
|
Implements the foreach interface for json objects.
|
opIndex
|
Array syntax for json arrays. |
opIndex
|
Hash syntax for json objects. |
opIndexAssign
|
Operator sets for element of JSON object by
|
toPrettyString
|
Implicitly calls on this JSONValue , like , but
|
toString
|
Implicitly calls on this JSONValue .
|
Authors
Jeremie Pelletier, David Herberth