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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

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

dbologna1
1-Newbie

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
ankigupta
5-Regular Member
(To:dbologna1)

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.

Top Tags