compiledata file, writing json files (with full domain)