SyntaxFix
Write A Post
Hire A Developer
Questions
Just use JSON.stringify(object). It's built into Javascript and can therefore also be used within Typescript.
JSON.stringify(object)