javascript - Error in the format of JSON -


i have json format :

[15:17:37,612] ({rb:"0.6", i:[{id:"cost_reportings_timestamp", label:"cost_reportings_timestamp", type:"date", pattern:""}, {id:"bureau de m. le maire min-sum-cost_reportings_cost", label:"bureau de m. le maire", type:"number", pattern:""}, {id:"salle de r\xe9union min-sum-cost_reportings_cost", label:"salle de r\xe9union", type:"number", pattern:""}, {id:"secr\xe9tariat / accueil min-sum-cost_reportings_cost", label:"secr\xe9tariat / accueil", type:"number", pattern:""}], k:[{c:[{v:(new date(1354921200000))}, {v:0}, {v:1.8221145868301392}, {v:1.0604355335235596}]}, {c:[{v:(new date(1355007600000))}, {v:0}, {v:2.288118362426758}, {v:0}]}, {c:[{v:(new date(1355094000000))}, {v:0.4536628723144531}, {v:2.1034255027770996}, {v:1.1031612157821655}]}, {c:[{v:(new date(1355180400000))}, {v:0.4586494266986847}, {v:2.0204458236694336}, {v:1.9794343709945679}]}, {c:[{v:(new date(1355266800000))}, {v:0.44572973251342773}, {v:2.406118154525757}, {v:1.0900148153305054}]}, {c:[{v:(new date(1355353200000))}, {v:1.0 […] 

i have problem because used googlechart , chart can't read format of json. format of json isn't good, it's

" new date(2012,11,17) "   

but need

" date(2012,11,17) " 

could me ?

i don't know api, need build date object , convert date string before sending json object.

try

var date1 = new date(2012,11,17).tojson(); ... google.visualization.query.setresponse({...,{"v": date1}...}); 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -