-
Notifications
You must be signed in to change notification settings - Fork 3
Description
I started using painlessjson but because of #36 moved to jsonizer - but since #36 got fixed I was trying to move back to painlessjson - however there a few things which I really like about jsonzier - the first is that it provides an JsonizeOptional.yes which I can use to cope with cases when my json may or may not contain a particular field.
The other main thing is I feel I have more control with jsonizer - because I can explicitly mark the things I want to be included - but I see that painlessjson does this the opposite way and I can ignore things I don't want to be included. I think perhaps I just quite like marking the things I want rather than the things I don't.
And finally perhaps something you can add - you can group several things together - so if they are all optional they can do in a block:
@jsonize {
string id;
string name;
}