Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/http/mod.ts>UserAgent#toJSON

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method UserAgent.prototype.toJSON
import { UserAgent } from "https://deno.land/std@0.215.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; }