aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/sql/readwriter.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/pyspark/sql/readwriter.py')
-rw-r--r--python/pyspark/sql/readwriter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/pyspark/sql/readwriter.py b/python/pyspark/sql/readwriter.py
index ec47618e73..45fb9b7591 100644
--- a/python/pyspark/sql/readwriter.py
+++ b/python/pyspark/sql/readwriter.py
@@ -163,8 +163,8 @@ class DataFrameReader(OptionUtils):
"""
Loads a JSON file and returns the results as a :class:`DataFrame`.
- Both JSON (one record per file) and `JSON Lines <http://jsonlines.org/>`_
- (newline-delimited JSON) are supported and can be selected with the `wholeFile` parameter.
+ `JSON Lines <http://jsonlines.org/>`_(newline-delimited JSON) is supported by default.
+ For JSON (one record per file), set the `wholeFile` parameter to ``true``.
If the ``schema`` parameter is not specified, this function goes
through the input once to determine the input schema.