www.digitalmars.com

D Programming Language 2.0

Last update Thu May 12 16:55:12 2011

std.json

JavaScript Object Notation

License:
Boost License 1.0.

Authors:
Jeremie Pelletier

References:
http://json.org/

Source:
std/json.d

enum JSON_TYPE;
JSON value types

struct JSONValue;
JSON value node

JSONValue parseJSON(T)(T json, int maxDepth = -1);
Parses a serialized string and returns a tree of JSON values.

string toJSON(in JSONValue* root);
Takes a tree of JSON values and returns the serialized string.

class JSONException: object.Exception;
Exception thrown on JSON errors