fromJSON

Extract a string type from a json value.

Examples

Extract a string from a json string.

assert(JSONValue("asdf").fromJSON!string == "asdf");

Meta