Skip to content

Instantly share code, notes, and snippets.

View gffranco's full-sized avatar

Gabriel Fróes Franco gffranco

View GitHub Profile
@gffranco
gffranco / serialization.vala
Created April 24, 2019 16:57 — forked from kosmolot/serialization.vala
Vala partial serialization (using json-glib)
/*
* An example of serialization.
* This example serializes and deserializes only 'x' property.
*
* vala: 0.36.3
* json-glib: 1.3.2
*/
public class Point : GLib.Object, Json.Serializable {
public int x { get; set; }