sending data from controller as json string