added /roi endpoint for JSON data