Jsoner
Object Hierarchy:
Description:
public class Jsoner : Object
Json helper for de/serialization
Since:
0.1.0
Content:
Properties:
Static methods:
- public static string serialize (Object obj, Case names_case = AUTO, bool pretty = false)
Serialize GLib.Object into a correct json
string
- public static async string serialize_async (Object obj, Case names_case = AUTO, bool pretty = false)
- public static ArrayList<T> simple_array_from_json<T> (string json, string[]? sub_members = null, Case names_case = AUTO, SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
- public static async ArrayList<T> simple_array_from_json_async<T> (string json, string[]? sub_members = null, Case names_case = AUTO, SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
Asynchronous version of method
simple_array_from_json_async
- public static HashMap<string,T> simple_dict_from_json<T> (string json, string[]? sub_members = null, Case names_case = AUTO, SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
- public static async HashMap<string,T> simple_dict_from_json_async<T> (string json, string[]? sub_members = null, Case names_case = AUTO, SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
Asynchronous version of method
simple_dict_from_json_async
- public static T simple_from_json<T> (string json, string[]? sub_members = null, Case names_case = AUTO, SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
- public static async T simple_from_json_async<T> (string json, string[]? sub_members = null, Case names_case = AUTO, SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
Asynchronous version of method
simple_from_json_async
Creation methods:
- public Jsoner (string json_string, string[]? sub_members = null, Case names_case = AUTO) throws JsonError
Performs initialization for deserialization. Accepts a json string. In
case of a parsing error
- public Jsoner.from_bytes (Bytes bytes, string[]? sub_members = null, Case names_case = AUTO) throws JsonError
Performs initialization for deserialization. Accepts a json string in
the form of bytes, the object GLib.Bytes. In case of a parsing error
- public Jsoner.from_data (uint8[] data, string[]? sub_members = null, Case names_case = AUTO) throws JsonError
Performs initialization for deserialization. Accepts a json string in
the form of bytes, an uint8 array. In case of a parsing error
Methods:
- public ArrayList<T> deserialize_array<T> (SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
Method for deserializing the Gee.ArrayList
- public async ArrayList<T> deserialize_array_async<T> (SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
- public void deserialize_array_into (ArrayList array_list, SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
Method for deserializing the Gee.ArrayList
- public async void deserialize_array_into_async (ArrayList array_list, SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
- public HashMap<string,T> deserialize_dict<T> (SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
Method for deserializing the Gee.HashMap
- public async HashMap<string,T> deserialize_dict_async<T> (SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
- public void deserialize_dict_into (HashMap dict, SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
Method for deserializing the Gee.HashMap
- public async void deserialize_dict_into_async (HashMap dict, SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
- public T deserialize_object<T> (SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
Method for deserializing the GLib.Object
- public async T deserialize_object_async<T> (SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
- public Object deserialize_object_by_type (Type obj_type, SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
Method for deserializing the GLib.Object
with GLib.Type
- public async Object deserialize_object_by_type_async (Type obj_type, SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
- public void deserialize_object_into (Object obj, SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
Method for deserializing into existing object
- public async void deserialize_object_into_async (Object obj, SubCollectionCreationFunc? sub_creation_func = null) throws JsonError
- public Value deserialize_value () throws JsonError
Method for deserializing the GLib.Value
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref