converted getSurvey JSON to object