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

x/fathym_common/src/common/iterables/json-map-set/jsonMapSetReviver.ts>jsonMapSetReviver

The Fathym Reference Architecture provides the common foundation for applications built in Typescript.
Latest
function jsonMapSetReviver
import { jsonMapSetReviver } from "https://deno.land/x/fathym_common@v0.2.160/src/common/iterables/json-map-set/jsonMapSetReviver.ts";

Reviver function for Map/Set parsing.

Examples

From direct import

import { jsonMapSetReviver } from "@fathym/common/iterables";

const obj = JSON.parse('{}', jsonMapSetReviver);

From common import

import { jsonMapSetReviver } from "@fathym/common";

const obj = JSON.parse('{}', jsonMapSetReviver);

Parameters

_key: any

The key of the json property.

value: any

The value of the property.

Returns

any

The revived value.