wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes Json framework that works with Google Chart Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Json framework that works with Google Chart" Watch "Json framework that works with Google Chart" New topic
Author

Json framework that works with Google Chart

Basas Safa
Greenhorn

Joined: Mar 13, 2012
Posts: 2
Hi,

I'm looking for a Json library that can serialize from Java Objects to Json format. And it should work with Google Chart.

I tried Googles Gson as a serializer... but it didnt allow me to generate:
{v:new Date(2008,3,30,0,31,26)}

But this is the format that Google Chart needs dates to be. So anyone has a Json library that you know can generate {v:new Date(2008,3,30,0,31,26)} ?

best regards
basas
Basas Safa
Greenhorn

Joined: Mar 13, 2012
Posts: 2
Problem solved.

Gson forum posted a workaround =)
http://groups.google.com/group/google-gson/browse_thread/thread/72c7c87362f53163

 
Don't get me started about those stupid light bulbs.
 
subject: Json framework that works with Google Chart