function jsonparse(jsonText, filename /*optional*/) {
  const vm = require("vm")
  return vm.runInNewContext(
    '(' + jsonText + ')',
    { /* sandbox */ },
    { filename, displayErrors: true }
  )
}
// jsonparse parses "relaxed" JSON which can be in JavaScript format
jsonparse parses "relaxed" JSON which can be in JavaScript format
jsonparse parses " relaxed " JSON which can be in JavaScript format
function jsonparse(jsonText, filename ) {
  const vm = require("vm")
  return vm.runInNewContext(
    '(' + jsonText + ')',
    {  },
    { filename, displayErrors: true }
  )
}
function jsonparse ( jsonText , filename ) { const vm = require ( "vm" ) return vm . runInNewContext ( '(' + jsonText + ')' , { } , { filename , displayErrors : true } ) }
jsonparse parses "relaxed" JSON which can be in JavaScript format
jsonparse parses " relaxed " JSON which can be in JavaScript format
/*optional*/ /* sandbox */