private static String contactDetailToJson(Contact contact) { return "{ \"uuid\": \"" + contact.getUuid() + "\", \"name\": \"" + contact.getName() + "\", \"age\": " + contact.getAge() + ", \"email\": \"" + contact.getEmail() + "\" }"; }
private static String contactSnippetToJson(Contact contact) { return "{ \"uuid\": \"" + contact.getUuid() + "\", \"name\": \"" + contact.getName() + "\", \"age\": " + contact.getAge() + ", \"details\": \"/" + contact.getUuid() + "\" }"; }