[Sysadmins] what's that contact format...

Gavin McCullagh gmccullagh at gmail.com
Wed Jul 21 13:54:02 IST 2010


Hi,

just a very quick question in case anyone recognises this.  I've got my
hands on a big bunch of contact files and need to import and make them
usable for someone.  The format is a CSV of sorts but with nesting done via
curly brackets.   I can write something to parse it if need be, but I'm sort of
hoping I don't need to.

Does anyone know what that format is?   A short example one is below...

Gavin

{"Success":true,"Data":{"HasPendingInvitationToCurrentUser":false,"Type":1,"IsPersonalVisible":false,"TypeString":"contact","ContactID":"327508962","FirstName":"XXXXX","MiddleName":"","LastName":"YYYYYY","BirthDate":{"Day":null,"Month":null,"Year":null,"DateFormatted":""},"Note":"","AboutMe":"","Website":{"Id":0,"Url":null},"AllPhoneNumbers":[],"AllEmailAddresses":[],"AllAddresses":[],"PersonalPhoneNumberTemplate":{"Id":0,"Number":"","Type":64,"FieldInfo":{"Id":"PersonalPhones[]_Number","Name":"PersonalPhones[].Number","Label":"Phone number","Value":"","SelectedFieldName":"PersonalPhones[].Type","SelectedFieldId":"PersonalPhones[]_Type","SelectedFieldText":"Mobile","SelectedFieldValue":"64","Options":[{"Key":"Mobile","Value":"64"},{"Key":"Home","Value":"4"},{"Key":"Fax","Value":"16"},{"Key":"Other","Value":"0"}]},"TypeString":"Mobile","IsPreferred":false,"IsPossiblePreferredNumber":true,"IsConfirmed":false,"RequestConfirmation":false,"ContextString":"Personal"},"WorkPhoneNumberTemplate":{"Id":0,"Number":"","Type":64,"FieldInfo":{"Id":"WorkPhones[]_Number","Name":"WorkPhones[].Number","Label":"Phone number","Value":"","SelectedFieldName":"WorkPhones[].Type","SelectedFieldId":"WorkPhones[]_Type","SelectedFieldText":"Mobile","SelectedFieldValue":"64","Options":[{"Key":"Mobile","Value":"64"},{"Key":"Fax","Value":"16"},{"Key":"Other","Value":"0"}]},"TypeString":"Mobile","IsPreferred":false,"IsPossiblePreferredNumber":true,"IsConfirmed":false,"RequestConfirmation":false,"ContextString":"Work"},"PersonalEmailAddressTemplate":{"Id":0,"Address":null,"IsPreferred":false,"IsConfirmed":false,"RequestConfirmation":false,"ContextString":"Personal"},"WorkEmailAddressTemplate":{"Id":0,"Address":null,"IsPreferred":false,"IsConfirmed":false,"RequestConfirmation":false,"ContextString":"Work"},"PersonalAddressTemplate":{"ContextString":"Personal","Id":0,"POBox":"","AddressLine2":"","AddressLine1":"","City":"","Zip":"","Region":"","Country":""},"WorkAddressTemplate":{"ContextString":"Work","Id":0,"POBox":"","AddressLine2":"","AddressLine1":"","City":"","Zip":"","Region":"","Country":""},"PersonalPhones":[],"PersonalEmailAddresses":[],"PersonalAddresses":[],"IsWorkVisible":false,"WorkPhones":[],"WorkEmailAddresses":[],"WorkAddresses":[],"Title":"","Department":"","Company":""},"ErrorMessages":null}




More information about the Sysadmins mailing list