Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dtils/json.ts>jsonDecode

The best unofficial library of utilities for Deno applications
Go to Latest
function jsonDecode
import { jsonDecode } from "https://deno.land/x/dtils@2.6.0/json.ts";

Parse json.

Wraps the native implementation, the difference being that primitives are parsed at the top level (i.e. jsonParse("null")) is valid

Parameters

json: string

Returns

unknown