JsonWorker
Object Hierarchy:
Description:
public sealed class JsonWorker :
Object
Typed JSON facade; choose a Codec for the root value.
Content:
Static methods:
- public static async T deserialize_async_with_codec<T> (string source, Codec<T> codec, Settings? settings = null, Cancellable? cancellable = null) throws Error
Parse JSON off-thread, then decode in the caller's MainContext.
- public static async T deserialize_async_with_codec_bytes<T> (Bytes bytes, Codec<T> codec, Settings? settings = null, Cancellable? cancellable = null) throws Error
- public static string serialize<T> (T value, Codec<T> codec, Settings? settings = null) throws Error
- public static string serialize_with_codec<T> (T value, Codec<T> codec, Settings? settings = null) throws Error
Encode through the shared mapper and JSON writer.
Creation methods:
Methods:
Inherited Members:
All known members inherited from class GLib.Object