Page 1 of 1

json in roomvars & roomlist

Posted: 26 Jan 2008, 14:33
by amnesya
Hi lads,

is it possible to make the server send all vars to client in json ?

i mean, roomlist and roomvars at the moment arrive in default asxml language.

any chance there is a way to do it in json ?

cheers...

amn.

Posted: 26 Jan 2008, 16:22
by Lapo
Nope, the Json and Raw string protocols can be used from extensions exclusively.

Posted: 26 Jan 2008, 16:31
by amnesya
is it at leas in the TODO list ?

btw great job.

amnesya

Posted: 28 Jan 2008, 07:15
by Lapo
yes it is

Posted: 30 Jul 2008, 03:58
by BigFIsh
Has this feature been added yet?

Is it possible to use JSON format for _server.sendGenericMessage() for sending custom room lists?

Thanks

Posted: 30 Jul 2008, 06:41
by Lapo
Has this feature been added yet?

Nope as it requires a redesign of the protocol from the ground up. This will be done in the next major SFS release.

Is it possible to use JSON format for _server.sendGenericMessage() for sending custom room lists?

No, because the API expect an XML format, if you use something else it won't be recognized.