Need to return a json format object.

d3.json() require the python service API
function returns a json format object.