$ npm i jsonat --save
<script src="https://cdn.jsdelivr.net/npm/jsonat"></script>
or
<script src="https://unpkg.com/jsonat"></script>
import { JSONAT } from "jsonat";
import { JSONATS } from "jsonat";
let value = {
function: () => console.info("Can stringify function."),
set: new Set([1])
}
let text = await JSONAT.stringify(value);
let value = await JSONAT.parse('{"name":"JSONAT"}');
let value = await JSONAT.fetch("https://api.genderize.io?name=john");
let value = await JSONAT.parsePartial({
primaryColor: "${Uint8ClampedArray([240, 219, 79])}"
});