RESTful API with JSON I/O