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:

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.

Json.BoxedDeserializeFunc(node)
Parameters:node (Json.Node) – a Json.Node
Returns:the newly created boxed type
Return type:object or None

Deserializes the contents of the passed Json.Node into a GObject.GBoxed

New in version 0.10.

Json.BoxedSerializeFunc(boxed)
Parameters:boxed (object or None) – a GObject.GBoxed
Returns:the newly created Json.Node
Return type:Json.Node

Serializes the passed GObject.GBoxed and stores it inside a Json.Node

New in version 0.10.

Json.ObjectForeach(object, member_name, member_node, *user_data)
Parameters:

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.