Decode JSON response