title: Parsing json string with escaped quotes in spark scala
body: <p>I am trying to parse the string given below as a JSON using Scala, but haven't been able to do so because of the escaped quotes <code>\&quot;</code> occurring in fields.</p>
  <pre class="lang-json prettyprint-override"><code>{\&quot;TimeCreated\&quot;:\&quot;2021-01-09T04:29:21.413Z\&quot;,\&quot;Computer\&quot;:\&quot;WIN-10.atfdetonate.local\&quot;,\&quot;Channel\&quot;:\&quot;Security\&quot;,\&quot;Provider\&quot;:\&quot;Microsoft-Windows-Security-Auditing\&quot;,\&quot;Category\&quot;:\&quot;AUDIT_SUCCESS\&quot;,\&quot;Version\&quot;:\&quot;1\&quot;,\&quot;EventID\&quot;:\&quot;4698\&quot;,\&quot;EventRecordID\&quot;:\&quot;12956650\&quot;,\&quot;SubjectUserSid\&quot;:\&quot;S-1-5-18\&quot;,\&quot;SubjectUserName\&quot;:\&quot;WIN-10$\&quot;,\&quot;SubjectDomainName\&quot;:\&quot;ATFDETONATE\&quot;,\&quot;SubjectLogonId\&quot;:\&quot;0x3e7\&quot;,\&quot;TaskName\&quot;:\&quot;\\Microsoft\\Windows\\UpdateOrchestrator\\Universal Orchestrator Start\&quot;,\&quot;TaskContent\&quot;:\&quot;&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;UTF-16\&quot;?&gt;\r &lt;Task version=\&quot;1.2\&quot; xmlns=\&quot;http://schemas.microsoft.com/windows/2004/02/mit/task\&quot;&gt;\r   &lt;RegistrationInfo&gt;\r     &lt;URI&gt;\\Microsoft\\Windows\\UpdateOrchestrator\\Universal Orchestrator Start&lt;/URI&gt;\r     &lt;SecurityDescriptor&gt;D:P(A;;FA;;;SY)(A;;FRFX;;;LS)(A;;FRFX;;;BA)&lt;/SecurityDescriptor&gt;\r   &lt;/RegistrationInfo&gt;\r   &lt;Triggers&gt;\r     &lt;TimeTrigger&gt;\r       &lt;StartBoundary&gt;2021-01-09T11:42:00.000Z&lt;/StartBoundary&gt;\r       &lt;Enabled&gt;true&lt;/Enabled&gt;\r     &lt;/TimeTrigger&gt;\r   &lt;/Triggers&gt;\r   &lt;Settings&gt;\r     &lt;MultipleInstancesPolicy&gt;IgnoreNew&lt;/MultipleInstancesPolicy&gt;\r     &lt;DisallowStartIfOnBatteries&gt;true&lt;/DisallowStartIfOnBatteries&gt;\r     &lt;StopIfGoingOnBatteries&gt;false&lt;/StopIfGoingOnBatteries&gt;\r     &lt;AllowHardTerminate&gt;true&lt;/AllowHardTerminate&gt;\r     &lt;StartWhenAvailable&gt;false&lt;/StartWhenAvailable&gt;\r     &lt;RunOnlyIfNetworkAvailable&gt;false&lt;/RunOnlyIfNetworkAvailable&gt;\r     &lt;IdleSettings&gt;\r       &lt;Duration&gt;PT10M&lt;/Duration&gt;\r       &lt;WaitTimeout&gt;PT1H&lt;/WaitTimeout&gt;\r       &lt;StopOnIdleEnd&gt;true&lt;/StopOnIdleEnd&gt;\r       &lt;RestartOnIdle&gt;false&lt;/RestartOnIdle&gt;\r     &lt;/IdleSettings&gt;\r     &lt;AllowStartOnDemand&gt;true&lt;/AllowStartOnDemand&gt;\r     &lt;Enabled&gt;true&lt;/Enabled&gt;\r     &lt;Hidden&gt;false&lt;/Hidden&gt;\r     &lt;RunOnlyIfIdle&gt;false&lt;/RunOnlyIfIdle&gt;\r     &lt;WakeToRun&gt;false&lt;/WakeToRun&gt;\r     &lt;ExecutionTimeLimit&gt;PT72H&lt;/ExecutionTimeLimit&gt;\r     &lt;Priority&gt;7&lt;/Priority&gt;\r   &lt;/Settings&gt;\r   &lt;Actions Context=\&quot;Author\&quot;&gt;\r     &lt;Exec&gt;\r       &lt;Command&gt;%systemroot%\\system32\\usoclient.exe&lt;/Command&gt;\r       &lt;Arguments&gt;StartUWork&lt;/Arguments&gt;\r     &lt;/Exec&gt;\r   &lt;/Actions&gt;\r   &lt;Principals&gt;\r     &lt;Principal id=\&quot;Author\&quot;&gt;\r       &lt;UserId&gt;S-1-5-18&lt;/UserId&gt;\r       &lt;RunLevel&gt;LeastPrivilege&lt;/RunLevel&gt;\r     &lt;/Principal&gt;\r   &lt;/Principals&gt;\r &lt;/Task&gt;\&quot;}
  </code></pre>
  <p>So far, I have tried <code>spark.json.read</code> and the <code>net.liftweb</code> library, but to no avail.</p>
  <p>Any kind of help is highly appreciated.</p>