Fan

 

class

json::Json

sys::Obj
  json::Json

Json implements serialization and deserialization of Fan objects to and from Javascript Object Notation (JSON).

See docLib for details.

Slots

readSource

static Obj read(InStream in)

Read a JSON object from the given stream and return either a Str:Obj? map or a Obj?[] list.

writeSource

static Void write(OutStream out, Obj obj)

Write the given object as JSON to the given stream. The object passed must be with a Str:Obj? map or a Obj?[] list.