Re: [swift-users] Swift 101: JSON or XML?

2017-02-06 Thread Tino Heth via swift-users
It's no real help for you, but for me, XML is a document format (store data for a long time), whereas JSON is a transfer format (I really wouldn't prefer JSON over XML for archiving). But imho JSON won't continue growing in popularity, because finally people seem to rediscover the advantages of

Re: [swift-users] Swift 101: JSON or XML?

2017-02-03 Thread Jens Alfke via swift-users
> On Feb 3, 2017, at 5:00 AM, Roy Henderson via swift-users > 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. Probabl

Re: [swift-users] Swift 101: JSON or XML?

2017-02-03 Thread Maury Markowitz via swift-users
Technically there is little to chose one over the other. I find working with JSON on Swift is somewhat easier than XML however, and that should not be a minor consideration. However, moving forward it seems that JSON will be more widely used and basing your comms on that is likely a very good i

Re: [swift-users] Swift 101: JSON or XML?

2017-02-03 Thread Rien via swift-users
I do not think there is a ‘best’ answer. I would go with JSON though. Apple’s JSON solution is fast, but it has some minor limitations and usability is not “up there”. Then again there are third party solutions, for example my own SwifterJSON single-class framework that you can download from g

Re: [swift-users] Swift 101: JSON or XML?

2017-02-03 Thread Saagar Jha via swift-users
Either should be fine, but in my experience JSON is a lot easier to work with due as compared to XML since JSONSerialization being simpler than XMLParser. Saagar Jha > On Feb 3, 2017, at 5:00 AM, Roy Henderson via swift-users > wrote: > > Hi, > > I'm about to develop my first non-trivial (fo

[swift-users] Swift 101: JSON or XML?

2017-02-03 Thread Roy Henderson via swift-users
Hi, I'm about to develop my first non-trivial (for me) Swift 3 app. It will retrieve data from a web server and present it on an iOS device. 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 sim