added jsonb serialization mode