parse json response if is returned as string.