code: function getJsonResource(url) {
  
      var protocol = url.match(/^(.*?):/)
      protocol = (protocol && protocol[1]) || 'file'
  
      const defaultLoader = defaultOptions.loaders[protocol]
      const loader = options.loaders[protocol]
  
      return Promise.resolve(cache[url])
      .then(cached => {
        if(cached) {
          return cached
        } else {
          return loader(url, defaultOptions.loaders)
            .then(json => cache[url] = {raw: json, parsed: Array.isArray(json) ? [] : {} })
        }
      })
    }
docs: Gets raw and parsed json from cache
  
  @param {object} url - uri-js object
  @param {object} params - ...rest of the json-reference object
  @returns  {Object}
  Returns an object containing raw, parsed and id