Closed GoogleCodeExporter closed 9 years ago
The ORG property is not correctly formatted in the input JSON string. Its
value is an array nested within an array--it should just be a regular array.
["org",{},"text",[["Societe","departement","Bureau"]]]
should be
["org",{},"text",["Societe","departement","Bureau"]]
Original comment by mike.angstadt
on 21 Apr 2015 at 12:41
Ok, in this case, the problem is with json writing, because this json example
was an ezVCard output ;)
Example :
public static void testOrganizationJsonWriting(){
VCard vCard = new VCard();
Organization organization = new Organization();
organization.addValue("Society");
organization.addValue("Department");
organization.addValue("Office");
vCard.addOrganization(organization);
System.out.println(Ezvcard.writeJson(vCard).go());
}
Give output :
...,["org",{},"text",[["Society","Department","Office"]]],...
Original comment by glpc.gol...@gmail.com
on 21 Apr 2015 at 8:28
Ah, you are right! Thanks for spotting this!
Fixed in this commit:
https://github.com/mangstadt/ez-vcard/commit/678cbff49430da4c57018dc722485775c5e
8a693
Original comment by mike.angstadt
on 25 Apr 2015 at 1:06
Thanks a lot ! :)
Original comment by glpc.gol...@gmail.com
on 29 Apr 2015 at 1:20
Original issue reported on code.google.com by
glpc.gol...@gmail.com
on 17 Apr 2015 at 3:49