fix build with json file format