a helper to parse vcard strings into JSON objects and back