facet classafJson::JsonProperty
sys::Obj afJson::JsonProperty : sys::Facet
Marks a field as a property of a JSON document.
- converterType
const Type? converterTypeUse to name a custom JSON
<->Fantom Converter. The type should extendJsonConverter.The converter should have a no-args ctor or, if using IoC, a ctor suitable for autobuild.
- implType
const Type? implTypeThe implementation
Typeto use when instantiating this object. Use when this field references a mixin or a superclass.Defaults to the field type.
- propertyName
const Str? propertyNameName of the JSON object property this field maps to.
Defaults to the field name.
- storeNullValues
const Bool? storeNullValuesDictates whether or not
nullvalues are persisted in JSON objects.If
nullthen the decision is deferred to theObjConverterimplementation, which isfalseby default.Note that the
nullcheck is performed on the JSON value after any conversion.