Re: [Vala] jSON parser



{"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]