> (Please don't top post)
> [Top posting corrected]
[quoted text clipped - 12 lines]
>> 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
> You could also look into the java.util.Properties input/output format.
> Hope this helps.
> Daniel.
Randolf Richardson - 02 Feb 2007 04:37 GMT
[sNip]
> 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?
[sNip]
The format of binary data can also be quite flexible (consider, for
example, DNS), but that depends on how much work one wants to put into
it. Using something that's already well-known can save a lot of
development time.

Signature
Randolf Richardson - kingpin+nntp@lumbercartel.ca
The Lumber Cartel, local 42 (Canadian branch)
http://www.lumbercartel.ca/