String template literal tag that converts values to JSON text
import json from 'string-template-format-json'
console.log(json`number ${123}; string: ${'abc'}; object: ${{ abc: 123 }}; array: ${[0, 1, 2]}`)
should print:
number: 123; string: "abc"; object: {"abc":123}; array: [0,1,2]
Generated using TypeDoc