Github user HyukjinKwon commented on a diff in the pull request: https://github.com/apache/spark/pull/12834#discussion_r61716763 --- Diff: python/pyspark/sql/readwriter.py --- @@ -177,31 +180,35 @@ def json(self, path, schema=None): :param path: string represents path to the JSON dataset, or RDD of Strings storing JSON objects. :param schema: an optional :class:`StructType` for the input schema. + :param primitivesAsString: infers all primitive values as a string type. If None is set, \ + it uses the default value, ``false``. + :param prefersDecimal: infers all floating-point values as a decimal type. If the values \ + do not fit in decimal, then it infers them as doubles. If None is \ + set, it uses the default value, ``false``. + :param allowComments: ignores Java/C++ style comment in JSON records. If None is set, \ + it uses the default value, ``false``. + :param allowUnquotedFieldNames: allows unquoted JSON field names. If None is set, \ + it uses the default value, ``false``. + :param allowSingleQuotes: allows single quotes in addition to double quotes. If None is \ + set, it uses the default value, ``true``. + :param allowNumericLeadingZero: allows leading zeros in numbers (e.g. 00012). If None is \ + set, it uses the default value, ``false``. + :param allowBackslashEscapingAnyCharacter: allows accepting quoting of all character \ + using backslash quoting mechanism. If None is \ + set, it uses the default value, ``false``. + :param columnNameOfCorruptRecord: allows renaming the new field having malformed string \ + created by ``PERMISSIVE`` mode. This overrides \ + ``spark.sql.columnNameOfCorruptRecord``. If None is set, \ + it uses the default value ``_corrupt_record``. + :param mode: allows a mode for dealing with corrupt records during parsing. If None is \ --- End diff -- I think I should move this option to the right pleace too. Let me push a commit more tomorrow.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org