What is the benefit of the new Javascript OData library over using jQuery?
What is the benefit of the new Javascript OData library over using jQuery? http://blogs.msdn.com/b/astoriateam/archive/2011/02/08/new-javascript-library-for-odata-and-beyond.aspx
Share
jQuery is very good at what it does and datajs doesn’t try to duplicate any of its features, so it’s hard to answer the question in those terms.
datajs currently implements extensive OData support, including multiple formats, support for parsing conceptual models, the ability to enhance results when metadata is known, batch handling, etc.
jQuery supports JSON usage, but that’s really just a matter of encoding – there is no support for any OData-specific behavior. If you’re talking to an OData server, you’ll be better off using datajs, and then you can use jQuery for everything else: animations, document building, controls, templating, etc.