There is a problem with the JSon generator and booleans. It uses true or false and not 0 and 1. So, the generator places text without quotes as value.
E.g. WCF services can't deal with this syntax. Yes, I can use an int and do the translation myself, but I think the JSon generator must do this and generate correct JSon, being 0 or 1 for booleans.
Very strange... Integer doesn't help, WCF REST Services expect 0 or 1 for a boolean. Which seems more logical than true and false written in text to me .
Nevertheless, thanks for the explanation. It would be handy if the developer could specify how booleans are 'translated' into JSon.