Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/17602#discussion_r110810827
--- Diff: python/pyspark/sql/readwriter.py ---
@@ -634,7 +634,9 @@ def saveAsTable(self, name, format=None, mode=None,
partitionBy=None, **options)
@since(1.4)
def json(self, path, mode=None, compression=None, dateFormat=None,
timestampFormat=None):
- """Saves the content of the :class:`DataFrame` in JSON format at
the specified path.
+ """Saves the content of the :class:`DataFrame` in JSON format
+ (`JSON Lines text format or newline-delimited JSON
<[http://jsonlines.org/>`_) at the
+ specified path.
--- End diff --
**Before **

**After**

Note that this is not consistent with Scala/Java ones:

---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]