This really annoys me now. You call it everywhere JSON, like in 'ToJSon and ToJSonResponse Example' etc. Still this is no proper JSON. I wrote now huge amounts of code that outputs my data into this annoying format which claims to be JSON but isn't really, just to find out, that I cannot do anything with it but use it in Html to display the Visualizations.
grrrrr! I mean in ToJS you also output proper JavaScript, not some JavaScript- like format that only makes sense in a single context. Why not point out that 'JavaScript Object Literal Notation' has nothing to do with JSON instead of somehow implying it does? On Feb 25, 12:53 pm, jago <[email protected]> wrote: > Why does GoogleViz use 'JavaScript Object Literal Notation' instead of > proper JSON (JavaScript Object Notation) ??? > > Something like: > { > cols: [{id: 'task', label: 'Task', type: 'string'}, > {id: 'hours', label: 'Hours per Day', type: > 'number'}], > rows: [{c:[{v: 'Work'}, {v: 11}]}, > {c:[{v: 'Eat'}, {v: 2}]}, > {c:[{v: 'Commute'}, {v: 2, f: '2.000'}]}] > > } > > cannot be parsed by any JSON library. Why can't we directly use proper > JSON? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Visualization API" group. 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 -~----------~----~----~----~------~----~------~--~---
