jsonizer.fromjson

Contains functions for deserializing JSON data.

Members

Functions

extract
deprecated T extract(JSONValue json)
fromJSON
T fromJSON(JSONValue json)

Extract a boolean from a json value.

fromJSON
T fromJSON(JSONValue json)

Extract a string type from a json value.

fromJSON
T fromJSON(JSONValue json)

Extract a numeric type from a json value.

fromJSON
T fromJSON(JSONValue json)

Extract an enumerated type from a json value.

fromJSON
T fromJSON(JSONValue json)

Extract an array from a JSONValue.

fromJSON
T fromJSON(JSONValue json)

Extract an associative array from a JSONValue.

fromJSON
T fromJSON(JSONValue json, string key)

Extract a value from a json object by its key.

fromJSON
T fromJSON(JSONValue json, string key, T defaultVal)

Extract a value from a json object by its key, return defaultVal if key not found.

fromJSON
T fromJSON(JSONValue json)

Extract a user-defined class or struct from a JSONValue. See jsonizer.jsonize for info on how to mark your own types for serialization.

fromJSONImpl
T fromJSONImpl(JSONValue json, P parent)
Undocumented in source. Be warned that the author may not have intended to support it.
fromJSONString
T fromJSONString(string json)

Convert a json value in its string representation into a type T

nestedFromJSON
Inner nestedFromJSON(JSONValue json, Outer outer)
Undocumented in source. Be warned that the author may not have intended to support it.
readJSON
T readJSON(string path)

Read a json-constructable object from a file.

readJSON
auto readJSON(string path)

Read contents of a json file directly into a JSONValue.

Manifest constants

jsonizeClassKeyword
enum jsonizeClassKeyword;

json member used to map a json object to a D type

Meta

Authors

<a href="https://github.com/rcorre">rcorre</a> * License: <a href="http://opensource.org/licenses/MIT">MIT</a> * Copyright: Copyright © 2015, rcorre

Date

Date: 3/23/15