<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br class="">
</span>JSON wasn’t designed for databases any more than XML was. Both were designed for messages. XML at least was designed for long-life messages, while JSON was designed for throwaway messages.</blockquote></div></div></div></div></blockquote><br class=""></div><div>I agree that both were (originally) designed for messages. But I don’t think it has anything to do with the level of persistence</div><div>or their lifetime.</div><div><br class=""></div><div>Let’s ignore for a second why they were created in the first place, and let’s look at how are they used now — very often </div><div>the original intent is not the final use. And, of course, both are used in more circumstances then simple messaging, but</div><div> let’s focus on the message use case.</div><div><br class=""></div><div>XML is now used as a message format between INDEPENDENT systems (e.g UBS wants to talk to Bank of America). </div><div>They have  NO CHOICE then to use XML is this case, because:</div><div>- they need a standard (if things go wrong… who’s fault it is !?)</div><div>- they need a pre-agreed schema ( otherwise how do they know they understand each other ?)</div><div><br class=""></div><div>JSON is of no use in this case, at least for now, because (a) not a standard and (b) doesn’t have a schema</div><div><br class=""></div><div>JSON is used today as a message format between client/server parts of the SAME system. There speed is the main requirement,</div><div>and XML is too heavy in size and parsing time, so it is of no use.</div><div><br class=""></div><div>==========</div><div><br class=""></div><div>In both cases, those messages will be logged, and hence persist somewhere.</div><div><br class=""></div><div>Nobody throws away data those days, of a variety of reasons… big data analysis (or at least the hope for it..), audit, security, etc.</div><div><br class=""></div><div><br class=""></div><div>So, no, I don’t think XML vs. JSON is a matter of persistence vs. not.</div><div><br class=""></div><div><br class=""></div><div>Best regards, have a great weekend</div><div>Dana</div><div><br class=""></div><div><br class=""></div><div><br class=""></div><div><br class=""></div></body></html>