Module

std/http/mod.ts>UserAgent#toJSON

The Deno Standard Library
Go to Latest
method UserAgent.prototype.toJSON
import { UserAgent } from "https://dotland.deno.dev/std@0.223.0/http/mod.ts";

Converts the current instance to a JSON representation.

Returns

{ browser: Browser; cpu: Cpu; device: Device; engine: Engine; os: Os; ua: string; }