code: function loadJson5(urlOrResource) {
    var resource;
    if (urlOrResource instanceof Resource) {
      resource = urlOrResource;
    } else {
      resource = new Resource({
        url: urlOrResource,
        headers: defaultHeaders
      });
    }
  
    return resource.fetchText().then(function(value) {
      return json5.parse(value);
    });
  }
docs: /*
  A modified version of Cesium's loadJson function, supporting the more flexible JSON5 specification.