You just need to add this statement with your read statement. It happens because your json is multiline option("multiLine", true).
spark.read.option("multiLine", true).option("mode", "PERMISSIVE") .json("/path/to/user.json")