The GVariant serialization specification has been rewritten as ReStructured Text and made part of the Git repository of glib. This is where you find it.