config by json file