agentscope-ai-java/json-guard
A zero-dependency TypeScript library enforces strict boundaries on nesting depth, key counts, and string lengths before parsing begins. This prevents memory exhaustion from malicious JSON structures. The project rejects oversized inputs immediately, avoiding allocation spikes. Developers can integrate it into Node.js applications to harden API endpoints against parser bomb attacks.
README
agentscope-ai-java/json-guard View on GitHub
Loading the README from GitHub…