iopipe.json.serialize

Undocumented in source.

Public Imports

iopipe.json.common
public import iopipe.json.common;
Undocumented in source.

Members

Enums

enumBaseType
enum enumBaseType

if on an enum, this serializes the enum as the base type instead of the enum name (default).

extras
enum extras

This UDA, when applied to a JSONValue type member, will consume all items that do not have a member name in that aggregate. Only one of these should be in a type.

ignore
enum ignore

Ignore the member when serializing a struct or class.

optional
enum optional

If this member is not present when deserializing a type, do not consider it an error.

serializeAs
enum serializeAs

This UDA will cause the specified member to be substituted in for serializing a struct or class type.

Functions

deserialize
T deserialize(JT tokenizer, ReleasePolicy relPol)
Undocumented in source. Be warned that the author may not have intended to support it.
deserialize
T deserialize(Chain c)
Undocumented in source. Be warned that the author may not have intended to support it.
deserialize
void deserialize(JT tokenizer, T item, ReleasePolicy relPol)
Undocumented in source. Be warned that the author may not have intended to support it.
deserialize
void deserialize(Chain c, T item)
Undocumented in source. Be warned that the author may not have intended to support it.
deserializeAllMembers
void deserializeAllMembers(JT tokenizer, T item, ReleasePolicy relPol)
Undocumented in source. Be warned that the author may not have intended to support it.
ignoredMembers
IgnoredMembers ignoredMembers(string[] m)

Apply this to a struct or class for members of a JSON object that you want to be ignored. For example, metadata that aids in deciding a concrete class type.

jsonExpect
void jsonExpect(JSONItem item, JSONToken expectedToken, string msg, string file, size_t line)

Expect the given JSONItem to be a specific token.

serialize
string serialize(T val)
Undocumented in source. Be warned that the author may not have intended to support it.
serialize
size_t serialize(Chain chain, T val, size_t offset)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeAllMembers
void serializeAllMembers(void delegate(const(Char)[]) w, T val)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeImpl
void serializeImpl(void delegate(const(Char)[]) w, T val)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeImpl
void serializeImpl(void delegate(const(Char)[]) w, T val)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeImpl
void serializeImpl(void delegate(const(Char)[]) w, T val)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeImpl
void serializeImpl(void delegate(const(Char)[]) w, T val)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeImpl
void serializeImpl(void delegate(const(Char)[]) w, T val)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeImpl
void serializeImpl(void delegate(const(Char)[]) w, T val)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeImpl
void serializeImpl(void delegate(const(Char)[]) w, T val)
Undocumented in source. Be warned that the author may not have intended to support it.
serializeImpl
void serializeImpl(void delegate(const(Char)[]) w, bool val)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

IgnoredMembers
struct IgnoredMembers
Undocumented in source.
alternateName
struct alternateName
Undocumented in source.

Meta