有没有办法在Typescript中将字符串解析为JSON. 示例:在JS中,我们可以使用JSON.parse().在Typescript中有类似的功能吗?
JSON.parse()
我有一个JSON对象字符串,如下所示:
'{"name":"Bob","error":false}'
javascript string json typescript
javascript ×1
json ×1
string ×1
typescript ×1