Skip to main content

stringify

Function stringify 

Source
pub fn stringify(value: &Value) -> String
Expand description

Encodes a value as JSON.stringify does: the same string escaping and number formatting, with non-finite numbers written as null.

Object keys are written in the object’s order, which is JS property order, so the output is what JSON.stringify writes for the same object.