Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
2.1.1
-
None
-
None
Description
When there is a quote in field value toJSON method gives wrong results.
>>> spark.range(1).selectExpr('concat("\\"", id, "\\"") as c').toJSON().collect() ['{"c":"\\"0\\""}']
The result is not a valid json.
https://jsonlint.com/