dump config to json format file