I just started developing with cherrypy, so I am struggling a little bit. In client side I am selecting some data, converting it to json and sending to server side via post method. Then I am doing a few operations with json and finally I want to send it back to client side. So the question is how to return modified json to the client side (browser).
Server side:
@cherrypy.exposedef drawChart(self):__test = cherrypy.request.body.read().strip()logging.debug(__test)#...some operations with data
Client side:
function send(JsonArray){$.ajax({url: '/drawChart',type: 'post',contentType: 'application/json',dataType: 'json',success: console.log("Success!"),data: JsonArray});
}