Write Json files to disk