Parsing broken JSON at speed: inside laxjson4j | Harness Blog
Blog post from Harness
Harness developed laxjson4j to inspect JSON bodies that are truncated by size limits or malformed, which strict parsers may reject entirely. The Java parser recovers available content in a single pass, tolerates common errors such as missing delimiters and trailing commas, and preserves duplicate keys rather than silently discarding values. Its redesign uses pooled buffers, typed tree nodes, and lower-allocation parsing and serialization; Harness reports a 97 KB document parse time of about 165 microseconds, compared with 182.7 microseconds for Jackson, while noting that Fastjson2 is faster on valid JSON but does not accept the broken inputs laxjson4j targets. In a request-path test, the parser maintained throughput and decision mix while reducing p99 latency from about 150 ms to 70 ms and decision timeouts from roughly 45 to 2.6 per second. The project is intended for security inspection and also supports use cases such as clipped logs, configuration files, and incomplete language-model responses.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| LLM | 1 | 912 | 153 | 73 | -83% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.