I can't find any method on the Boolean class to serialize a Boolean to "1" and "0" instead of "true" and "false".
Is there any native function to do that ? If not, what is the best way (most optimized way) ?
Update: I indeed mean to produce a String out of a Boolean.