Gjsify LogoGjsify Logo

Hierarchy

  • BoxedSerializeFunc

Callable

  • BoxedSerializeFunc(boxed: object): Json.Node
  • Serializes the passed GBoxed and stores it inside a JsonNode, for instance:

    static JsonNode *
    my_point_serialize (gconstpointer boxed)
    {
    const MyPoint *point = boxed;

    g_autoptr(JsonBuilder) builder = json_builder_new ();

    json_builder_begin_object (builder);
    json_builder_set_member_name (builder, "x");
    json_builder_add_double_value (builder, point->x);
    json_builder_set_member_name (builder, "y");
    json_builder_add_double_value (builder, point->y);
    json_builder_end_object (builder);

    return json_builder_get_root (builder);
    }

    Parameters

    • boxed: object

      a boxed data structure

    Returns Json.Node

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method