(But XML does have the advantage of a richer data model, with names to identify different elements, which makes it more self-describing; in JSON you often have to have either an informal schema describing what different objects represent, or explicitly add a property like “type”: to identify an object. This actually helps a lot if you’re parsing to native objects, since you can easily set up a mapping from XML element names to native classes.)
On Feb 3, 2017, at 5:00 AM, Roy Henderson via swift-users <email@example.com> wrote:
I would welcome guidance regarding whether I should use JSON or XML to store the data on the web server? The effort to generate either format will be similar so my real decision driver is on the client side.