Skip to main content
Module

std/http/user_agent.ts>UserAgent#toJSON

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

Converts the current instance to a JSON representation.

Returns

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