Add JSON decoding on API responses