fixed the data controller to send a true json object