export function json(u, opts = {}) {
  return url(u, opts).then(r => r.json())
}