MCPcopy Index your code
hub / github.com/tinyplex/tinybase / jsonStringWithMap

Function jsonStringWithMap

src/common/json.ts:9–12  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

7export const jsonParse = JSON.parse;
8
9export const jsonStringWithMap = (obj: unknown): string =>
10 jsonString(obj, (_key, value) =>
11 isInstanceOf(value, Map) ? object.fromEntries([...value]) : value,
12 );
13
14export const jsonStringWithUndefined = (obj: unknown): string =>
15 jsonString(obj, (_key, value) => (isUndefined(value) ? UNDEFINED : value));

Callers 12

getTablesJsonFunction · 0.90
getValuesJsonFunction · 0.90
getJsonFunction · 0.90
getTablesSchemaJsonFunction · 0.90
getValuesSchemaJsonFunction · 0.90
getSchemaJsonFunction · 0.90
setPersistedFunction · 0.90
getOrSetStoreFunction · 0.90
constructStorageKeyFunction · 0.90
onRequestMethod · 0.90
getValueHashFunction · 0.90
getUniqueIdFunction · 0.90

Calls 1

isInstanceOfFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…