Two Laptop Bag
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
Register / Login


JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply 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

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Json framework that works with Google Chart
 
Similar Threads
Implementation of google charts in JSP
Jfree chart and table report
select query , Need to store objects in a JSONArray
gantt chart for J2EE application
for generating chart