• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSON WebServices

 
Luke Murphy
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is it possible for anyone to explain why webservices which involve geocoding or map images benefit from using JSON?

Geocoding - google use this (I think)
map images - Anything to do with images can be Ajaxised with JSON.

Any better answers.

Thanks.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSON is very handy for services that are consumed by JavaScript (it's easy to create JavaScript objects from a JSON document) - so services accessed by browsers can benefit from it.

Not sure what you mean by the reference to images - JSON consists of textual data; maybe you can elaborate.
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Luke, based on The Google Geocoding API, Google offers Geocoding API Web Services via JSON and XML.

Regards,
Dan
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSON says -

Beyond size, XML lacks an explicit mechanism for representing large binary data types such as image data (although binary data can be serialized in either case by applying a general-purpose binary-to-text encoding scheme such as one of the Base-64 variants). JSON can represent them using arrays of numbers (representing bytes, or larger integer units up to the precision of 52 bits including the sign bit), because it can exactly represent IEEE-754 64-bit doubles (as specified in the ECMAScript standard).



Regards,
Dan
 
Luke Murphy
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dan Drillich wrote:JSON says -

Beyond size, XML lacks an explicit mechanism for representing large binary data types such as image data (although binary data can be serialized in either case by applying a general-purpose binary-to-text encoding scheme such as one of the Base-64 variants). JSON can represent them using arrays of numbers (representing bytes, or larger integer units up to the precision of 52 bits including the sign bit), because it can exactly represent IEEE-754 64-bit doubles (as specified in the ECMAScript standard).



Regards,
Dan


Great answer - thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic