Started writing code to handle JSON responses