handle booleans automatically for json