cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

How convert a string in 'json format' into json object

dbologna1
1-Visitor

How convert a string in 'json format' into json object

Hi All,

i have one string like that {"NR_TDOOR_CYCLES":145,"TM_TDOOR_OPEN":26,"ACT_PWR":0,"TC_SM_BACK_B"} how can I convert into json object ?

If I use a json is very fast to read a properties and a values .

Many Thanks

BR

DImitri

1 REPLY 1

Hi Dimitri Bologna​,

I think this can be simply done using

JSON.parse(StringJSON);

where StringJSON is the string which has JSON text.

I hope it helps.

Announcements


Top Tags