Converting String into Object Json Array using Java : <p>I have this string which located inside external file.</p>

<pre><code> {
      "IsValid": true,
      "LiveSessionDataCollection": [
        {
          "CreateDate": "2017-12-27T13:29:06.595Z",
          "Data": "Khttp://www8.hp.com/us/en/large-format-printers/designjet-printers/products.html&amp;AbSGOX+SGOXpLXpBF8CXpGOA9BFFPconsole.info('DeploymentConfigName%3DRelease_20171227%26Version%3D1')%3B&amp;HoConfig: Release_20171227&amp;AwDz//////8NuaCh63&amp;Win32&amp;SNgYAJBBYWCYKW9a&amp;2&amp;SGOX+SGOXpF/1en-us&amp;AAAAAAAAAAAAQICBCXpGOAAMBBBB8jl",
          "DataFlags": 8,
          "DataFlagType": 264,
          "LegacyLiveSessionDataType": null,
          "LiveSessionId": 1545190526042650,
          "MessageNumber": 0,
          "StreamId": 0,
          "StreamMessageId": 0,
          "ProjectId": 201
        },
        {
          "CreateDate": "2017-12-27T13:29:08.887Z",
          "Data": "oDB Information Level : Detailed&amp;9BbRoDB Annual Sales : 55000000&amp;BoDB Audience : Mid-Market Business&amp;AoDB%20Audience%20Segment%20%3A%20Retail%20%26%20Distribution&amp;AoDB B2C : true&amp;AoDB Company Name : Clicktale Inc&amp;AoDB SID : 120325490&amp;AoDB Employee Count : 275&amp;AoDB Employee Range : Mid-Market&amp;AoDB%20Industry%20%3A%20Retail%20%26%20Distribution&amp;AoDB Revenue Range : $50M - $100M&amp;AoDB Sub Industry : Electronics&amp;AoDB Traffic : High&amp;AWB9tY/8bvOBBP_({\"a\":[{\"a\":{\"s\":\"w:auto;l:auto;\"},\"n\":\"div53\"}]})&amp;sP_({\"a\":[{\"a\":{\"s\":\"w:auto;l:auto;\"},\"n\":\"div62\"}]})&amp;FP_({\"r\":[\"script2\"],\"m\":[{\"n\":{\"nt\":1,\"tn\":\"SCRIPT\",\"a\":{\"async\":\"\",\"src\":\"http://admin.brightcove.com/js/api/SmartPlayerAPI.js?_=1514381348598\"},\"i\":\"script55\"},\"t\":false,\"pn\":\"head1\"}]})&amp;8GuP_({\"a\":[{\"a\":{\"s\":\"t:0px;mt:0px;l:274.5px;ml:0px;\"},\"n\":\"div442\"}]})&amp;SP_({\"a\":[{\"a\":{\"s\":\"t:0px;mt:0px;l:274.5px;ml:0px;\"},\"n\":\"div444\"}]})&amp;D",
          "DataFlags": 8,
          "DataFlagType": 264,
          "LegacyLiveSessionDataType": null,
          "LiveSessionId": 1545190526042650,
          "MessageNumber": 1,
          "StreamId": 0,
          "StreamMessageId": 1,
          "ProjectId": 201
        },
        {
          "CreateDate": "2017-12-27T13:29:08.971Z",
          "Data": "P_({\"a\":[{\"a\":{\"s\":\"mih:480px;\"},\"n\":\"div105\"},{\"a\":{\"s\":\"mih:480px;\"},\"n\":\"div114\"},{\"a\":{\"s\":\"mih:480px;\"},\"n\":\"div123\"}]})&amp;9B+8P_({\"a\":[{\"a\":{\"s\":\"mih:480px;\"},\"n\":\"div167\"},{\"a\":{\"s\":\"mih:480px;\"},\"n\":\"div169\"},{\"a\":{\"s\":\"mih:480px;\"},\"n\":\"div178\"}]})&amp;JP_({\"a\":[{\"a\":{\"s\":\"mih:457px;\"},\"n\":\"div220\"},{\"a\":{\"s\":\"mih:457px;\"},\"n\":\"div229\"},{\"a\":{\"s\":\"mih:457px;\"},\"n\":\"div238\"}]})&amp;FP_({\"a\":[{\"a\":{\"s\":\"mih:480px;\"},\"n\":\"div282\"},{\"a\":{\"s\":\"mih:480px;\"},\"n\":\"div291\"},{\"a\":{\"s\":\"mih:480px;\"},\"n\":\"div300\"}]})&amp;HP_({\"a\":[{\"a\":{\"s\":\"t:0px;mt:-92px;l:274.5px;ml:0px;\"},\"n\":\"div442\"}]})&amp;HP_({\"a\":[{\"a\":{\"s\":\"t:0px;mt:-92px;l:274.5px;ml:0px;\"},\"n\":\"div444\"}]})&amp;B",
          "DataFlags": 8,
          "DataFlagType": 264,
          "LegacyLiveSessionDataType": null,
          "LiveSessionId": 1545190526042650,
          "MessageNumber": 2,
          "StreamId": 0,
          "StreamMessageId": 2,
          "ProjectId": 201
        },
        {
          "CreateDate": "2017-12-27T13:29:08.98Z",
          "Data": "P_({\"r\":[\"object1\",\"param1\",\"param2\",\"param3\",\"param4\",\"param5\",\"param6\",\"param7\",\"param8\",\"param9\",\"param10\",\"param11\",\"param12\",\"param13\",\"param14\",\"param15\"],\"m\":[{\"n\":{\"nt\":1,\"tn\":\"OBJECT\",\"a\":{\"type\":\"application/x-shockwave-flash\",\"i\":\"LNK--1710e8cd-4820-4be0-8cf0-28d57402afd8LNK--1710e8cd-4820-4be0-8cf0-28d57402afd8\",\"width\":\"720\",\"height\":\"422\",\"c\":\"BrightcoveExperience BrightcoveExperienceID_1039\",\"seamlesstabbing\":\"undefined\"},\"i\":\"object3\"},\"t\":false,\"pn\":\"div443\",\"ps\":\"meta29\"},{\"n\":{\"nt\":1,\"tn\":\"SCRIPT\",\"a\":{\"type\":\"text/javascript\",\"src\":\"http://admin.brightcove.com/js/api/SmartPlayerAPI.js\"},\"i\":\"script56\"},\"t\":false,\"pn\":\"div443\",\"ps\":\"object3\"},{\"n\":{\"nt\":1,\"tn\":\"PARAM\",\"a\":{\"name\":\"allowScriptAccess\",\"v\":\"always\"},\"i\":\"param31\"},\"t\":false,\"pn\":\"object3\"},{\"n\":{\"nt\":1,\"tn\":\"PARAM\",\"a\":{\"name\":\"allowFullScreen\",\"v\":\"true\"},\"i\":\"param32\"},\"t\":false,\"pn\":\"object3\",\"ps\":\"param31\"},{\"n\":{\"nt\":1,\"tn\":\"PARAM\",\"a\":{\"name\":\"seamlessTabbing\",\"v\":\"false\"},\"i\":\"param33\"},\"t\":false,\"pn\":\"object3\",\"ps\":\"param32\"},{\"n\":{\"nt\":1,\"tn\":\"PARAM\",\"a\":{\"name\":\"swliveconnect\",\"v\":\"true\"},\"i\":\"param34\"},\"t\":false,\"pn\":\"object3\",\"ps\":\"param33\"},{\"n\":{\"nt\":1,\"tn\":\"PARAM\",\"a\":{\"name\":\"wmode\",\"v\":\"opaque\"},\"i\":\"param35\"},\"t\":false,\"pn\":\"object3\",\"ps\":\"param34\"},{\"n\":{\"nt\":1,\"tn\":\"PARAM\",\"a\":{\"name\":\"quality\",\"v\":\"high\"},\"i\":\"param36\"},\"t\":false,\"pn\":\"object3\",\"ps\":\"param35\"},{\"n\":{\"nt\":1,\"tn\":\"PARAM\",\"a\":{\"name\":\"bgcolor\",\"v\":\"FFFFFF\"},\"i\":\"param37\"},\"t\":false,\"pn\":\"object3\",\"ps\":\"param36\"}]})&amp;9CAQ",
          "DataFlags": 8,
          "DataFlagType": 264,
          "LegacyLiveSessionDataType": null,
          "LiveSessionId": 1545190526042650,
          "MessageNumber": 3,
          "StreamId": 0,
          "StreamMessageId": 3,
          "ProjectId": 201
        },
        {
          "CreateDate": "2017-12-27T13:29:09.413Z",
          "Data": "P_({\"a\":[{\"a\":{\"s\":\"w:720px;h:422px;p:relative;\"},\"n\":\"div443\"},{\"a\":{\"s\":\"p:relative;\"},\"n\":\"div445\"}],\"r\":[\"script55\"],\"m\":[{\"n\":{\"nt\":1,\"tn\":\"DIV\",\"a\":{\"c\":\"spooler\",\"s\":\"d:block;o:0;\"},\"i\":\"div451\"},\"t\":false,\"pn\":\"div443\"},{\"n\":{\"nt\":1,\"tn\":\"DIV\",\"a\":{\"c\":\"ispl_sm\",\"s\":\"o:1;\"},\"i\":\"div452\"},\"t\":false,\"pn\":\"div451\"},{\"n\":{\"nt\":1,\"tn\":\"DIV\",\"a\":{\"c\":\"layer\",\"s\":\"o:1;\"},\"i\":\"div453\"},\"t\":false,\"pn\":\"div451\",\"ps\":\"div452\"},{\"n\":{\"nt\":1,\"tn\":\"DIV\",\"a\":{\"c\":\"spooler\",\"s\":\"d:block;o:0;\"},\"i\":\"div454\"},\"t\":false,\"pn\":\"div445\"},{\"n\":{\"nt\":1,\"tn\":\"DIV\",\"a\":{\"c\":\"ispl_sm\",\"s\":\"o:1;\"},\"i\":\"div455\"},\"t\":false,\"pn\":\"div454\"},{\"n\":{\"nt\":1,\"tn\":\"DIV\",\"a\":{\"c\":\"layer\",\"s\":\"o:1;\"},\"i\":\"div456\"},\"t\":false,\"pn\":\"div454\",\"ps\":\"div455\"}]})&amp;9CA5P_({\"a\":[{\"a\":{\"s\":\"d:block;o:0.0282439;\"},\"n\":\"div451\"},{\"a\":{\"s\":\"o:0.989022;\"},\"n\":\"div453\"},{\"a\":{\"s\":\"d:block;o:0.0282439;\"},\"n\":\"div454\"},{\"a\":{\"s\":\"o:0.989022;\"},\"n\":\"div456\"}]})&amp;W",
          "DataFlags": 8,
          "DataFlagType": 264,
          "LegacyLiveSessionDataType": null,
          "LiveSessionId": 1545190526042650,
          "MessageNumber": 4,
          "StreamId": 0,
          "StreamMessageId": 4,
          "ProjectId": 201
        }
      ]
</code></pre>

<p>I am trying to parse it into JSON array object , when I searched for it in Google I found the following solution:</p>

<pre><code>JSONArray jsonArray = new JSONArray("path_to_file_to_parse");
</code></pre>

<p>but when I wrote it inside my code I got an error. Is there another way to make it? </p>

<p>I am using json-simple version 1.1</p>
