Hello Joel, Is there any reason for not using the Atom format? I understand that JSON is lightweight and more convenient in some languages, but support for it in the Contacts API is limited.
Best, Alain On Mon, Apr 2, 2012 at 12:17 PM, Joel Finkel <[email protected]> wrote: > Consider the Contacts API. It can return data as a JSON object. However, > that object has properties with names that contain dollar signs ($). For > example, gd$name. To access it in PHP, one would have to use something > like $contact->gd$name. This is illegal in PHP, which is one of the most > popular languages around. As a result, in order to use PHP, one has to > convert the JSON object to an array (recursively) so as to be able to > access fields like this: $contact['gd$name']. This is weird, and I wonder > why the folks at Google decided to use dollar signs in names to being > with. Did they not know that this would cause problems with PHP? > > -- > You received this message because you are subscribed to the Google > Groups "Google Contacts, Shared Contacts and User Profiles APIs" group. > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://code.google.com/apis/contacts/community/forum.html > -- Alain Vongsouvanh | Developer Programs Engineer -- You received this message because you are subscribed to the Google Groups "Google Contacts, Shared Contacts and User Profiles APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://code.google.com/apis/contacts/community/forum.html
