adding supporting api for json response testing