Constructor for a JSON object.
Represents the run time type of a JSON value.
The append operator will append arrays. This method always appends it's argument as an array element, so nested arrays can be created.
Allows foreach iterating over JSON objects and arrays.
Allows assignment of D values to a JSON value.
Performs binary operations between JSON values.
Converts the JSON value to the corresponding D type - types must match exactly.
Compares two JSON values.
Compares two JSON values for equality.
Allows direct indexing of array typed JSON values.
Allows direct indexing of object typed JSON values using a string as the key.
Performs binary operations between JSON values.
Returns a slice of a JSON array.
Performs unary operations on the JSON value.
Allows removal of values from Type.Object Json objects.
Returns the JSON object as a "pretty" string.
Returns the JSON object as a string.
New JSON value of Type.Array
New JSON value of Type.Object
Converts the JSON value to the corresponding D type - types must match exactly.
Returns the number of entries of string, array or object typed JSON values.
Allows to access existing fields of a JSON object using dot syntax.
Returns the native type for this JSON if it matches the current runtime type.
Converts the JSON value to the corresponding D type - types are converted as necessary.
The current type id of this JSON object.
Returns the type id corresponding to the given D type.
New JSON value of Type.Undefined
Represents a single JSON value.
Json values can have one of the types defined in the Json.Type enum. They behave mostly like values in ECMA script in the way that you can transparently perform operations on them. However, strict typechecking is done, so that operations between differently typed JSON values will throw a JSONException. Additionally, an explicit cast or using get!() or to!() is required to convert a JSON value to the corresponding static D type.