changed return data to json from string