tag:blogger.com,1999:blog-8677320456287245517.post1448016862926018649..comments2023-10-01T03:24:41.639-10:00Comments on HackyHawaii For Life by AK: hackystat data in jsonaaronhttp://www.blogger.com/profile/14904770558911719358noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8677320456287245517.post-20103284634456379652008-08-22T14:50:00.000-10:002008-08-22T14:50:00.000-10:00Yes, with JSON you do reap a bit of savings in Pac...Yes, with JSON you do reap a bit of savings in Packet Size. Though, the problem with JSON (and REST) is that you really need control over both ends of the communication channel. With XML (and SOAP), you are able to get some schema information within the data packet, or from parsing a WSDL.<BR/><BR/>I have <BR/><A HREF="http://www.not404.com/content/building-better-restful-json-datastore-dojo-toolkit-102-0" REL="nofollow">blogged about this JSON issue</A> some time ago when I was experimenting with Web 2.0 Toolkits.<BR/><BR/>As for bandwidth savings.. it's all text anyway (XML or JSON), so as long as those MIME types are configured in web server (and the client can handle it), the transmission is gzipped over the wire.laleehttps://www.blogger.com/profile/09114050284612097949noreply@blogger.comtag:blogger.com,1999:blog-8677320456287245517.post-59546118420311487752008-07-17T07:37:00.000-10:002008-07-17T07:37:00.000-10:00Interesting idea, but if we're going to support a ...Interesting idea, but if we're going to support a second format besides XML, I'd be interested in looking at protocol buffers, which are binary on the wire:<BR/><BR/>http://code.google.com/apis/protocolbuffers/<BR/><BR/>But I agree with your point that data transmission throughput might be improved in certain cases with a more compact representation. <BR/><BR/>p.s. It would be helpful to post ideas like this to hackystat-dev (perhaps as a link to your blog entry). I just stumbled across this posting accidentally and I don't know if any other hackystat developers have even seen it.Philip Johnsonhttps://www.blogger.com/profile/12095636274313170271noreply@blogger.com