java - Jackson - Serialize boolean to 1/0 instead of true/false -
i have rest resource receives json object map user id boolean indicate if user had errors.
since i'm expecting big number of users, shrink size of json using 1/0 instead of true/false.
i tried , found during desalinization jackson convert 1/0 true/false successfully, there way tell jackson (maybe using annotation?) serialize boolean field 1/0 instead of true/false?
i ended writing own serializer boris suggested
java json jackson
No comments:
Post a Comment