I am having one JSON as :
{\"A\":\"1.354534634,\",\"B\":\"-0.432335,\",\"C\":\"0.234123423,\"}
I need to tokenize this with Javascript and I need to assign values like that:
Accel_X = value of A, ie. 1.354534634
Accel_Y = value of B, ie. -0.432335
Accel_Z = value of C, ie. 0.234123423
I can use slice()
. But that is a bad way to do that for a larger instance and not good way to code. So, How can I do that ?