Languages
[Edit]
EN

TypeScript - convert string variable to json text

0 points
Created by:
Mariam-Barron
811

In TypeScript it is possible to convert string constiable to json text in following way.

1. JSON.stringify example

Edit

Example 1

Edit

Example 2

Edit

In this example, we print object using JSON.stringify.

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join