std.json

JavaScript Object Notation

Members

Classes

JSONException
class JSONException

Exception thrown on JSON errors

Enums

JSONFloatLiteral
enum JSONFloatLiteral

String literals used to represent special float values within JSON strings.

JSONOptions
enum JSONOptions

Flags that control how json is encoded and parsed.

JSONType
enum JSONType

JSON type enumeration

Functions

parseJSON
JSONValue parseJSON(T json, int maxDepth, JSONOptions options)

Parses a serialized string and returns a tree of JSON values.

parseJSON
JSONValue parseJSON(T json, JSONOptions options)

Parses a serialized string and returns a tree of JSON values.

toJSON
string toJSON(JSONValue root, bool pretty, JSONOptions options)

Takes a tree of JSON values and returns the serialized string.

toJSON
void toJSON(Out json, JSONValue root, bool pretty, JSONOptions options)

Structs

JSONValue
struct JSONValue

JSON value node

Meta

Authors

Jeremie Pelletier, David Herberth References: http://json.org/, http://seriot.ch/parsing_json.html

Suggestion Box / Bug Report