parsing response string to json dictionary