Re: [Vala] Generating JSON in Vala



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?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]