Avoiding spaces in return value keys, makes it easier to navigate with specially javascript. An example is "Place Type".
While something like
jsonreturn.place.centroid.latitude is easier to use,
y.place.placeTypeName attrs.code is wrong.
It has to be written as
y.place['placeTypeName attrs'].code
Avoiding spaces makes it easier to navigate through the returned object.
Thanks for reminding JavaScript users to use array notation rather than object notation to fetch attributes such as the placeTypeName code attribute. This is a consequence of mapping XML attributes to JSON elements. Unfortunately, we can't change the JSON response format now without breaking things for existing users.
Eddie Babcock
Yahoo! Geo Technologies