Simplify API client by using request-json library