use json file protocol api