Use json for contacts, contactsgroups and timeperiods