Daniel said:
(Please don't top post)
[Top posting corrected]
No I want to use Json, because of its higher compression, which is
important for J2ME where every byte of space counts. sending json data
over the air will also speedup the app considerably.
Btw, one thing to consider is that I believe the GPRS packet size is
1kilobyte. In other words, if you retrieve just ten bytes (for example),
a 1kb packet is still sent over the GPRS network. And one kilobyte plus
a few bytes of data cause two whole kilobytes of GPRS data to be sent,
and so on.
The choice of something like Json/xml versus a set binary format depends
quite a bit on how flexible the data you are sending is. Does it always
have the same fields, in same order, in same amounts? Or is more
flexibility needed?
Perhaps you would be better off using Serialized objects if size is an
issue. Or, if you don't need extensibility, just send a predetermined
binary format.
Whoops, I think I just reiterated above what you say about
'extensibility'...
lex