VibeJSONSerializer

Serialize arbitrary data to / from JSON

This is the default serializer used by LocalRest, when none is provided. It is a template so that LocalRest does not import Vibe.d if not used.

Public Imports

vibe.data.json
public import vibe.data.json;
Undocumented in source.

Members

Functions

deserialize
QT deserialize(string data)
Undocumented in source. Be warned that the author may not have intended to support it.
serialize
string serialize(T value)
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

alias S = VibeJSONSerializer!();
static assert(!serializerInvalidReason!(S).length, serializerInvalidReason!(S));
static assert(is(SerializedT!(S) == string));

Meta