News for hackers. Stuff that matters.
Re:Why is JSON so popular? Developers want out of the syntax... by tintin on Thursday June 23, 2011 @03:47AM (#2687074)
Only problem with SimpleXML is that it needs to have the complete file in memory. This isn't a problem for small XML files. But reading a file of lets say 100MB will produce tons of objects an thus a large amount of used memory.
Re:Why is JSON so popular? Developers want out of the syntax... by jasonlotito on Thursday June 23, 2011 @06:01AM (#2687321)
I'd argue that any chance of having a large XML file where you'd use SAX, you'd need to deal with JSON in the same manner. Then the problem is solved with XML (use SAX), but with JSON, what do I use?