how to get value of object in javascript
I have an object and I want to show its content.
{"text": "active user
active user213123
idle user234234234
loggedout userafdadf"
},
I did Response = message.split(":")[1]; and I got:
"active user
active user213123
idle user234234234
loggedout userafdadf"
},
then: var value = message.split("}")[0]; and I got:
"active user
active user213123
idle user234234234
loggedout userafdadf"
So now how can I get rid of "" so I can have the raw valu of text? and
beside that is there any other way to retrive a value of the object?
because this way seems crazy..
No comments:
Post a Comment