Skip to main content

parse_strict_json

Function parse_strict_json 

Source
pub fn parse_strict_json(text: &str) -> Result<Value>
Expand description

Parses signed JSON strictly (Agent Identity Section 4.1): rejects duplicate member names, unpaired surrogates, and integers outside the safe range. serde_json::Value silently keeps the last of two duplicate names, so parse raw request bodies with this before hashing.