It's a simple but powerful decoder tool that loads your data from vCards strings and returns fully categorized Json.
let $vCard = 'BEGIN:VCARD\nVERSION:3.0\nN:Gump;Forrest;;Mr.;\nFN:Forrest Gump\nORG:Bubba Gump Shrimp Co.\nTITLE:Shrimp Man\nTEL;TYPE#WORK,VOICE:(111) 555-1212\nTEL;TYPE#HOME,VOICE:(404) 555-1212\nADR;TYPE#WORK,PREF:;;100 Waters Edge;Baytown;LA;30314;United States of America\nLABEL;TYPE#WORK,PREF:100 Waters Edge\nBaytown\, LA 30314\nUnited States of America\nADR;TYPE#HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America\nLABEL;TYPE#HOME:42 Plantation St.\nBaytown\, LA 30314\nUnited States of America\nEMAIL:[email protected]\nREV:2008-04-24T19:52:43Z\nEND:VCARD'
vCard.initialize($vCard).to_json();
And the result is:
Code released under the MIT license.