I write app for android which will be synchronize databases located on android device with external database. In short Android generate some data and store it in own database. From time to time Android send this data through internet to HTTP server. I’m wondering, what will be better to send this data XML or JSON? I know that JSON is much more lighter than XML but do XML any advantage on JSON? What is better to synchronize databases?
I write app for android which will be synchronize databases located on android device
Share
In very large data sets XML will be slightly heavier because it needs opening and closing tags. There is also the question of how big the data between tags is. If you have large amount of data in between opening and closing tags, then this “softens” the effect. If you are not working with a ton of data, then I would just use whichever has better native library support for both client and server. For small to medium datasets, I do not think the difference will be very noticeable.