Add utility class to handle JSON API HTTP requests.

* Add test case.