The json is fine. Insert this line after the AJAX call and check the
developer's console:
alert(typeof(jsonData));
console.log(jsonData);
You should get a popup that says "object" and the developer's console
should have the *exact* same json as your PHP page.
On Monday, September 3, 2012 10:23:43 PM UTC-4, Diana Flores wrote:
>
>
> {"cols":[{"label":"PLACA","type":"string"},{"label":"SEMANA_1","type":"number"},{"label":"SEMANA_2","type":"number"},{"label":"SEMANA_3","type":"number"},{"label":"SEMANA_4","type":"number"},{"label":"SEMANA_5","type":"number"}],"rows":[{"c":[{"v":"PCC2143"},{"v":4},{"v":3},{"v":20},{"v":8},{"v":1}]},{"c":[{"v":"PBZ7213"},{"v":5},{"v":4},{"v":21},{"v":7},{"v":2}]},{"c":[{"v":"PCA0085"},{"v":6},{"v":5},{"v":22},{"v":6},{"v":3}]},{"c":[{"v":"PCA5844"},{"v":7},{"v":6},{"v":23},{"v":5},{"v":4}]},{"c":[{"v":"PCA5853"},{"v":8},{"v":7},{"v":24},{"v":4},{"v":5}]},{"c":[{"v":"PCA2219"},{"v":9},{"v":8},{"v":25},{"v":3},{"v":6}]},{"c":[{"v":"PCC0728"},{"v":1},{"v":9},{"v":13},{"v":18},{"v":7}]},{"c":[{"v":"PCH1213"},{"v":2},{"v":12},{"v":12},{"v":19},{"v":8}]},{"c":[{"v":"PCD4842"},{"v":3},{"v":13},{"v":11},{"v":20},{"v":9}]},{"c":[{"v":"PCC0503"},{"v":4},{"v":14},{"v":10},{"v":1},{"v":1}]},{"c":[{"v":"PCM6736"},{"v":10},{"v":15},{"v":9},{"v":2},{"v":2}]},{"c":[{"v":"PCC2146"},{"v":11},{"v":16},{"v":8},{"v":3},{"v":3}]},{"c":[{"v":"PCA5854"},{"v":13},{"v":17},{"v":7},{"v":4},{"v":4}]},{"c":[{"v":"PCA5856"},{"v":7},{"v":18},{"v":6},{"v":5},{"v":5}]}]}
>
> i ask a friend about the error, and told me to add <meta charset="
> utf-8"></head><body> and that eliminate the error, but the warning still
> there!!!!, is the json table correct?
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/BlDonladlJcJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.