Re: [Vala] Generating JSON in Vala
- From: Daniel Espinosa <esodan gmail com>
- To: Nick Watts <nick cravingreality net>
- Cc: Vala-list <vala-list gnome org>
- Subject: Re: [Vala] Generating JSON in Vala
- Date: Wed, 1 Jul 2015 06:41:38 -0500
For Gee containers as properties, at GXml[1] Serializable framework it use
a method in a interface implemented by the class having them, where you
initialize all your Gee classes, because they can't be created on generic
code due to its generic nature.
[1] git.gnome. org/browse/gxml
El jul. 1, 2015 6:30 AM, "Nick Watts" <nick cravingreality net> escribió:
Thanks heaps Guillaume for the tip on Json.gobject_serialize(), that made
it super-simple to add GObjects as a possible input type. I've just
finished adding support for booleans, arrays and objects to EasyJSON, it's
now pretty much feature-complete (demo on the github page at
https://github.com/unyieldinggrace/EasyJSON).
One issue that I bumped into was that I couldn't find any one-liner syntax
to create a Gee.ArrayList? I'm sure I'm just being a n00b, but It appears
that Gee.ArrayList.wrap() is deprecated?
Anyone know of a more concise way to create an ArrayList than calling
list.add() for each item?
_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]