modify json to java generator