nl_tokens: Produce an error document for when parsing fails .
pl_tokens: function ( error , data , uri ) { // var output = '<div id="error">' + //    this.stringbundle.GetStringFromName('errorParsing') + '</div>'; // output += '<h1>' + //    this.stringbundle.GetStringFromName('docContents') + ':</h1>'; var output = '<div id="error">Error parsing JSON: ' + error . message + '</div>' output += '<h1>' + error . stack + ':</h1>' ; <mask> += '<div id="jsonview">' + this . htmlEncode ( data ) + '</div>' ; return this . toHTML ( output , uri + ' - Error' ) ; }