Adding offline capability.  Storing json in shared preferences and retrieving it if we are unable to contact the server.