Re: [bacnet-it-wg] BACnet in JSON? A brief introduction.
- ---------- Forwarded message ----------
From: Dave Robin <yahoo@...>
Date: Sat, Nov 3, 2012 at 1:16 AM
Subject: [bacnet-it-wg] BACnet in JSON? A brief introduction.
To: XML-WG <BACnet-XML-WG@yahoogroups.com>, IT-WG <firstname.lastname@example.org>, AP-WG <BACnet_AP_WG@yahoogroups.com>, SG-WG <BACnet-SmartGrid@yahoogroups.com>
Some of you might have noticed that in my recent discussion document about the future of BACnet, I snuck in the possibility for using the relative upstart JSON rather than our old friend XML.
In the last two years, JSON has gone from "trendy" to being the workhorse syntax for most new Internet protocols. Even though both GData and OData were based on Atom XML, they had JSON representations since their inception, and now Google has made the big switch away form XML entirely for new designs, and Microsoft seems to be leaning more that way with full support for JSON in the WCF Data Services framework. Google away and see if you agree.
So, for those who would ask "so just what does it look like, anyway?", I've made a comparison document that shows the XML examples from the BACnet/WS proposal side by side with their JSON equivalents. And for those embedded developers who shudder at parsing XML, maybe, just maybe, they'll shudder a little less at JSON.