I have REST resource that receives JSON object which is a map from user ID to some boolean that indicate if this user had errors.
Since I'm expecting a large number of users, I would like to shrink the size of this JSON by using 1/0 instead of true/false.
I tried and found that during desalinization Jackson will convert 1/0 to true/false successfully, but is there a way to tell Jackson (maybe using annotation?) to serialize this boolean field to 1/0 instead of true/false?