classnetColarUtils::JsonUtils

sys::Obj
  netColarUtils::JsonUtils

JsonUtils Utilities to save/load objects in JSON format

Note: Non simple Serializable objects MUST provide an it constructor

ie: new make(|This| f) {f(this)}
load

static Obj? load(InStream in, Type type, Bool closeStream := true)

Load the object to the instream Stream is guaranteed to be closed.

save

static Void save(OutStream out, Obj? obj, Bool closeStream := true)

Save the object to the outstream Stream is guaranteed to be closed.