JSON - how to access roomId data
Posted: 03 Dec 2009, 15:17
hello Im using JSON to send messages from server to client.
when i receive the messages in the client i catch it in the onExtensionResponse event.
i want to get the roomId from the JSON data,
i see that the room id exists in the JSON data, for example:
I didn't find a way to access the "r" data,
how do i get the roomId from that data
when i receive the messages in the client i catch it in the onExtensionResponse event.
i want to get the roomId from the JSON data,
i see that the room id exists in the JSON data, for example:
Code: Select all
{"t":"xt","b":{"r":17,"o":{"cmd":"rwr","btype":[1],"bwin":[0]}}}
how do i get the roomId from that data