convert returned string to json