Re: [Vala] jSON parser
- From: Denis Kuzmenok <forward_ua ukr net>
- To: "Luis L. Rodríguez Oro" <luisr uci cu>
- Cc: vala-list gnome org
- Subject: Re: [Vala] jSON parser
- Date: Wed, 14 Mar 2012 21:54:04 +0200
{"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")))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]