Add training data and send it as json to client