JSON/Object from string
-
OK, follow up question. So I have my RSA encrypted JSON, I can decrypt it, and I get back a string like this:
{"SerialNumber": "ABCDABCDABCDABCD", "ExpirationDate": "2023-01-18T05:25:43.511Z"}
Now I want to turn this into an object so I can reference like this:
if(myObj.SerialNumber == "ABCDABCDABCDABCD") { // do something funky }
So is there any way to get a string into an object? Essentially Javascript's JSON.parse(string);
-
-
@d-healey - oh very nice - thank you....given the dates on that thread I'm only 12 months behind you now!!
-
@d-healey does this still work? or has been replaced by some different method? I checked api docs and didnt see anything.
-
@parabuh Nothing's changed as far as I'm aware