> {"data":50.65} // jSON
> stdout.printf ("data: %d\n", root_object.get_int_member ("data"));
> // dont work!

> I cant control the value. ¿How get variant type data?

Try:
stdout.printf  ("data: %d\n", int.parse (root_object.get_double_member
("data")))

_______________________________________________
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to