Parse responses to json