PySpark code
>>> df.write.json(specified_path)

teradatamlspk code to store the file in local file system
>>> df.write.json(specified_path)