GitHub - ADD-SP/json-threat-protection.rs: A crate to protect against malicious JSON payloads.
JSON-threat-protection.rs
A Rust library to protect against malicious JSON payloads.
Features
This crate provides functionality to validate JSON payloads against a set of constraints.
Maximum depth of the JSON structure.
Maximum length of strings.
Maximum number of entries in arrays.
Maximum number of entries in objects.
Maximum length of object entry names.
Whether to allow duplicate object entry names.
Docs
https://docs.rs/json-threat-protection
Performance
This crate is designed to be fast an...
Read more at github.com