Add support for RESTful API like JSON request/response