Callbacks¶
| ArrayForeach(array, index_, element_node, *user_data) | |
| BoxedDeserializeFunc(node) | |
| BoxedSerializeFunc(boxed) | |
| ObjectForeach(object, member_name, member_node, *user_data) | 
Details¶
- 
Json.ArrayForeach(array, index_, element_node, *user_data)¶
- Parameters: - array (Json.Array) – the iteratedJson.Array
- index (int) – the index of the element
- element_node (Json.Node) – aJson.Nodecontaining the value at index_
- user_data (objectorNone) – data passed to the function
 - The function to be passed to - Json.Array.foreach_element(). You should not add or remove elements to and from array within this function. It is safe to change the value of element_node.- New in version 0.8. 
- array (
- 
Json.BoxedDeserializeFunc(node)¶
- Parameters: - node ( - Json.Node) – a- Json.Node- Returns: - the newly created boxed type - Return type: - objector- None- Deserializes the contents of the passed - Json.Nodeinto a- GObject.GBoxed- New in version 0.10. 
- 
Json.BoxedSerializeFunc(boxed)¶
- Parameters: - boxed ( - objector- None) – a- GObject.GBoxed- Returns: - the newly created - Json.Node- Return type: - Json.Node- Serializes the passed - GObject.GBoxedand stores it inside a- Json.Node- New in version 0.10. 
- 
Json.ObjectForeach(object, member_name, member_node, *user_data)¶
- Parameters: - object (Json.Object) – the iteratedJson.Object
- member_name (str) – the name of the member
- member_node (Json.Node) – aJson.Nodecontaining the member_name value
- user_data (objectorNone) – data passed to the function
 - The function to be passed to - Json.Object.foreach_member(). You should not add or remove members to and from object within this function. It is safe to change the value of member_node.- New in version 0.8. 
- object (