Hi Daniel.
I've thought at this way indeed.
I've already used JSON.parse(json); but unfortunately it doesn't work.
I don't understand what's wrong here.
One side, the content of json is good. (copy past)
On the other side, the same variable with same content doesn't works.
It's crazy.
*/Franck Danard/*
Le 29/01/2017 à 03:45, 'Daniel LaLiberte' via Google Visualization API a
écrit :
There is nothing special about the name of the variable. The issue is
what's in the variable. JSON format is actually a string that
contains a structure. It looks like you have a string as shown in
your message output, so then you will have to convert the string to a
JavaScript object by parsing it.
Here is documentation on the JavaScript JSON.parse() function:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse
We should try to make this all this clearer in the Google Charts
documentation.
--
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/cdc37815-bdc7-1cfb-3ac6-b62ea19b7c8f%40gmail.com.
For more options, visit https://groups.google.com/d/optout.