Contact structure

This document describes the structure of the contact, which is returned from API. Everytime contact is returned from API, it has this structure:

example 1: Contact
{
  "id_contact":3,
  "type":"email",
  "value":"john.doe@company.com",
  "primary":1
}  
  

Objects has following parameters:

id_contact
Unique ifentifier.
primary
Whether contact is used as primary for it's type.1 means that contact is primary. There is always one primary instance for every type of contact (assumimg at least one exists).
type
Contact type.
value
Contact value.