title: json_decode doesn't work on my string
body: <p>I have JSON Object which I have encoded like so</p>
  
  <pre><code>{
  "id": "",
  "steps": [
               {
          "target": "purchase_order_items_itemmaster_id",
          "title": "",
          "placement": "",
          "content": "",
          "xoffset": "",
          "yoffset": ""
                }
           ]
  }
  $JSONData = json_encode($finalData,JSON_PRETTY_PRINT);
  </code></pre>
  
  <p>I am taking this JSON data and storing it in a file like so </p>
  
  <pre><code>File::put("path","var tour = \n [ \n\t $JSONData \n ];");
  </code></pre>
  
  <p>which looks something like this in the file</p>
  
  <pre><code>    var tour = 
   [ 
       {
      "id": "",
      "steps": [
          {
              "target": "purchase_order_items_itemmaster_id",
              "title": "",
              "placement": "",
              "content": "",
              "xoffset": "",
              "yoffset": ""
          }
      ]
  }
   ];
  </code></pre>
  
  <p>Now I am reading it back form the second line like so</p>
  
  <pre><code> [ 
       {
      "id": "",
      "steps": [
          {
              "target": "purchase_order_items_itemmaster_id",
              "title": "",
              "placement": "",
              "content": "",
              "xoffset": "",
              "yoffset": ""
          }
      ]
  }
   ];
  </code></pre>
  
  <p>The problem is when I want to decode it back it doesn't happen,this is how I am trying to do that,</p>
  
  <pre><code>$lines = file_get_contents("path",NULL,NULL,10);
  
  $a = json_decode($lines);
  </code></pre>
  
  <p>Now according to expected output the $a should have the decoded data but it has null.</p>
  
  <p>Can someone point out the mistake?</p>