Fix JSON serialization of boooleans.