parse_value

Function parse_value 

Source
pub fn parse_value(buf: &[u8]) -> Result<Value<'_>, Error>
Expand description

Parse JSON text to JSONB Value with extended mode. The parser will follow extended JSON syntax rules like leading plus signs, multiple leading zeros, decimal points without digits, and empty array elements. Numeric values are preferentially parsed as decimal values to ensure that precision is not lost.

Inspired by https://github.com/jorgecarleitao/json-deserializer Thanks Jorge Leitao.