jsonizer.fromjson

Contains functions for deserializing JSON data.

Members

Functions

extract
T extract(JSONValue json)
fromJSON
T fromJSON(JSONValue json, in ref JsonizeOptions options = JsonizeOptions.defaults)

Deserialize json into a value of type T.

fromJSON
T fromJSON(JSONValue json, string key, in ref JsonizeOptions options = JsonizeOptions.defaults)

Extract a value from a json object by its key.

fromJSON
T fromJSON(JSONValue json, string key, T defaultVal, in ref JsonizeOptions options = JsonizeOptions.defaults)

Extract a value from a json object by its key.

readJSON
T readJSON(string path, in ref JsonizeOptions options = JsonizeOptions.defaults)

Read a json-constructable object from a file.

readJSON
auto readJSON(string path)

Read the contents of a json file directly into a JSONValue.

Meta

Date

Date: 3/23/15