Skip to main content

set_numeric_native

Function set_numeric_native 

Source
pub fn set_numeric_native(native: bool)
Expand description

Set whether decimals serialize as JSON numbers (true) or strings (false).

This is a thread-local setting. Call it before serialization begins. If serialization runs on rayon worker threads, each worker must set this independently.