Type of the data to be deserialized
Serialization format ($(SUPPORTEDFORMATS))
A string containing serialized data in the specified format
Supports $(SUPPORTEDSTRUCTURES).
Data contained in the string
struct TestStruct { string a; } //Compare a struct serialized into two different formats const aStruct = fromString!(TestStruct, JSON)(`{"a": "b"}`); const anotherStruct = fromString!(TestStruct, YAML)("---\na: b"); assert(aStruct == anotherStruct);
Deserializes data from a string.
String is assumed to be UTF-8 encoded.