Skip to main content
Deno 2 is finally 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.
Go to Latest
function jsonMapSetReviver
import { jsonMapSetReviver } from "https://deno.land/x/fathym_common@v0.2.22-integration/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.