A configurable JSON API client.