import { JsonUtil } from "https://deno.land/x/sptaki@1.2.0/utils/JsonUtil.d.ts";
Methods
protected
ensureJsonCacheExists(jsonCachePath: string): voidCreate file if nothing found
protected
hydrateJsonCache(jsonCachePath: string): voidRead contents of json cache and add to class field
clone<T>(objectToClone: T): T
Convert into string and back into object to clone object
deserialize<T>(jsonString: string, filename?: string): T
From string to object
deserializeJson5<T>(jsonString: string, filename?: string): T
deserializeJsonC<T>(): T
From string to object
deserializeWithCacheCheck<T>(jsonString: string, filePath: string): T
From json string to object
deserializeWithCacheCheckAsync<T>(jsonString: string, filePath: string): Promise<T>
serialize(data: any, prettify?: boolean): string
From object to string
serializeAdvanced(): string
data: any,
replacer?: () => any,
this: any,
key: string,
value: any,
space?: string | number,
From object to string
serializeJson5(): string
data: any,
filename?: string | null,
prettify?: boolean,
serializeJsonC(): string
From object to string