title: Way to turn invalid Json to valid
body: <p>I am working on a project with a SonicWall router. The responses that I get from it are in json format. I have no problems parsing them etc, etc but it seems that there is one case where the SW will return an invalid json as a response. Here is an example:</p>
  
  <pre><code>{
      "success": false,
      "reboot_required": false,
      "status": [
          {
              "cli": [
                  { "command": [ { "token": "no" }, { "token": "nat-policy" }, { "token": "id", "error": true }, { "token": "10", "error": true } ] },
                  { "command": [ { "token": "end" } ] }
              ],
              "info": [
                   { "type": "error", "code": "CLI_E_NOT_FOUND", "message": "Nat Policy not found.
  " }
              ]
          }
      ]
  }
  </code></pre>
  
  <p>Notice that the message does not close properly but changes a line? This causes the following parsingException:</p>
  
  <pre><code>Exception in thread "main" javax.json.stream.JsonParsingException: Unexpected char 13 at (line no=11, column no=97, offset=447)
      at org.glassfish.json.JsonTokenizer.unexpectedChar(JsonTokenizer.java:532)
      at org.glassfish.json.JsonTokenizer.readString(JsonTokenizer.java:189)
      at org.glassfish.json.JsonTokenizer.nextToken(JsonTokenizer.java:376)
      at org.glassfish.json.JsonParserImpl$ObjectContext.getNextEvent(JsonParserImpl.java:261)
      at org.glassfish.json.JsonParserImpl$StateIterator.next(JsonParserImpl.java:172)
      at org.glassfish.json.JsonParserImpl.next(JsonParserImpl.java:149)
      at org.glassfish.json.JsonReaderImpl.readObject(JsonReaderImpl.java:177)
      at org.glassfish.json.JsonReaderImpl.readArray(JsonReaderImpl.java:143)
      at org.glassfish.json.JsonReaderImpl.readObject(JsonReaderImpl.java:180)
      at org.glassfish.json.JsonReaderImpl.readArray(JsonReaderImpl.java:143)
      at org.glassfish.json.JsonReaderImpl.readObject(JsonReaderImpl.java:180)
      at org.glassfish.json.JsonReaderImpl.readObject(JsonReaderImpl.java:103)
  </code></pre>
  
  <p>Is there any way to turn this in a valid json? </p>