If you want to specify styling in JSON literal you can use the p:{style: 'some styling here'}
property for the row object. However you cannot specify class definition in p
attribute :(
JSON Example:
var dataAsJSON = {
cols:[{type:'string'},{type:'string'},{type:'string'}],
rows:[
{c:[{v: '0', f: 'Final Fantasy'}, null, {v: 'First Root'}], p:{style: 'background-color:violet;'}},
{c:[{v: '1', f: 'DmC'}, null, {v: 'Second Root'}], p:{style: 'background-color:lime;'}},
{c:[{v: '2', f: 'Cloud Strife'}, {v: '0'}, null]},
{c:[{v: '3', f: getFormattedCell('Vincent Valentine')}, {v: '0'}, null]},
{c:[{v: '4', f: 'Sephiroth'}, {v: '2'}, null]},
{c:[{v: '5', f: 'Dante'}, {v: '1'}, null]},
{c:[{v: '6', f: 'Nero'}, {v: '1'}, null]}
]
};