JSON is based on the
following data structures.
1. Object-Collection of key-value pairs, separated by a comma, and
enclosed in {}.
2. Array-Ordered sequence of values, separated by a comma and
enclosed in [].
For example, the following JSON represents a catalog object.
{
???journal???: ???Oracle Magazine???,
???publisher???: ???Oracle Publishing???,
???edition???: ???January-February 2007???,
???title???: ???Know Your UML with XML???,
???author???: [
???Robert Wigetman???,
???Jurgen Moortgat???
]
}
182 9 RSS Feed with Ajax
By default the Ajax Feed API returns the feed in JSON format. Because
of the incompatibilities between the various versions of RSS and the
limitations of RSS, a new syndication specification, Atom, was introduced
in 2003. Atom feed has advantages over the RSS feed. RSS is an
approximate subset of Atom. Both Atom and RSS have features not
provided by the other. RSS feed supports only plain text and HTML,
whereas Atom feed supports various additional content types such as
XHTML, XML and binary, and references to video and audio content.
Atom is a standardized by IETF, whereas RSS is not standardized. Atom
supports XML standard features such as XML Schema, RSS doesn??™t.
Atom is in an XML namespace while RSS 2.0 is not. Microsoft has
introduced the Simple Sharing Extensions (SSE), which extend the Atom
1.0 and RSS 2.0 specifications to provide item sharing between crosssubscribed
feeds.
Pages:
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165