The code in javascript is
$(document).ready(function () {var options = {
series: { points: { show: true }, shadowSize: 0 },
xaxis: { mode: "time" },
yaxis: { min:0, max: 100 },
pan: { interactive: true }};
$.getJSON("http://localhost:8085/WebApplication1/metricsJson.jsp?instanceId=3457",
function(data){
alert(data);
var plot = $.plot($("#placeholder"), data, options);
});});
and http://localhost:8085/WebApplication1/metricsJson.jsp?instanceId=3457 returns
{"data":[[[1258216500000,4.91],[1258212240000,4.39],[1258216920000,4.46],[1258211640000,4.39],[1258210980000,4.82] ]]}
thank you