JSONFileHandler rewrite