ae.utils.json

JSON encoding.

Members

Structs

JSONFragment
struct JSONFragment

Fragment of raw JSON. When serialized, the .json field is inserted into the resulting string verbatim, without any validation. When deserialized, will contain the raw JSON of one JSON object of any type.

JSONName
struct JSONName

User-defined attribute - specify name for JSON object field. Useful when a JSON object may contain fields, the name of which are not valid D identifiers.

JSONOptional
struct JSONOptional

User-defined attribute - only serialize this field if its value is different from its .init value.

JSONPartial
struct JSONPartial

User-defined attribute - skip unknown fields when deserializing.

JsonWriter
struct JsonWriter(Output)

Templates

NonSerialized
template NonSerialized(fields...)

A template that designates fields which should not be serialized to Json.

Meta

Authors

Vladimir Panteleev <vladimir@thecybershadow.net>

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.