Is there a way to parse strings as JSON in Typescript.
Example: In JS, we can use JSON.parse()
. Is there a similar function in Typescript?
I have a JSON object string as follows:
{"name": "Bob", "error": false}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…