returning proper json to request