I have simply template.
let t="{\"CName\":\"{{Value}}\"}";
Source object is:
let obj={"value":"\"JSC inc\""};
After render Mustache.render(t,obj) has string with html escapes
"{"CName":""JSC inc""}"
How is a best and easy way to get rendered string with json escapes - "{"CName":"\"JSC inc\""}"
The answer really will depends on which mustache implementation you're using.
But in common implementation, you'd use either of those syntax to bypass HTML escaping:
{{{ Value }}}{{& Value}}