Thanks Andrew, I believe we have Jackson installed and wired into all our
web services, so I was assuming it would magically transform my string into
JSON. I'll try your approach with the DataTable and see if I can get that
working.
(FWIW, while waiting for replies I continued to experiment with the string
and found that this worked:
return "{" +
" \"cols\": [" +
"
{\"id\":\"\",\"label\":\"Date\",\"pattern\":\"\",\"type\":\"string\"}," +
" {\"id\":\"\",\"label\":\"Active
Campaigns\",\"pattern\":\"\",\"type\":\"number\"}" +
" ]," +
" \"rows\": [" +
"
{\"c\":[{\"v\":\"6/20/14\",\"f\":null},{\"v\":393,\"f\":null}]}," +
"
{\"c\":[{\"v\":\"6/21/14\",\"f\":null},{\"v\":387,\"f\":null}]}," +
"
{\"c\":[{\"v\":\"6/22/14\",\"f\":null},{\"v\":406,\"f\":null}]}," +
"
{\"c\":[{\"v\":\"6/23/14\",\"f\":null},{\"v\":411,\"f\":null}]}," +
"
{\"c\":[{\"v\":\"6/24/14\",\"f\":null},{\"v\":415,\"f\":null}]}" +
" ]" +
"}";
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.