const mixinafJson::Json

afJson::Json

@Js

(Service) - A one-stop shop for all your JSON mapping needs!

inspectors

Source

abstract JsonTypeInspectors inspectors()

Returns the underlying JsonTypeInspectors.

make

Source

static new make(JsonTypeInspectors inspectors := ...)

Creates a new Json instance with the given inspectors.

readEntity

Source

abstract Obj? readEntity(Str? json, Type fantomType)

Reads the the given JSON and converts it to a Fantom entity instance.

writeEntity

Source

abstract Str writeEntity(Obj? fantomObj, Type? fantomType := null)

Converts the given entity to JSON.

If fantomType is null it defaults to the type of the given obj.