Prototype 2: Evaluating alternatives to YAJL for JSON processing#3540
Open
Easton97-Jens wants to merge 15 commits intoowasp-modsecurity:v3/masterfrom
Open
Prototype 2: Evaluating alternatives to YAJL for JSON processing#3540Easton97-Jens wants to merge 15 commits intoowasp-modsecurity:v3/masterfrom
Easton97-Jens wants to merge 15 commits intoowasp-modsecurity:v3/masterfrom
Conversation
725276f to
c8506d3
Compare
Complete implementation simdjson Complete implementation jsoncons remove analysis Initialize ret variable to zero in UnitTestResult fix test Fix validateByteRange and cssDecode unit test edge cases complete jsoncons performance adjustment sonarqubecloud error corrected
9ce8550 to
c13f7d1
Compare
Easton97-Jens
added a commit
to Easton97-Jens/ModSecurity
that referenced
this pull request
Apr 13, 2026
d706eaf to
bbde416
Compare
sonarqubecloud error corrected Refactor JSONAdapter parse method to use parseImpl Refactor JSONAdapter parse methods to remove adapter parameter Add parseImpl method to json_adapter.h Refactor JSON field handling in regression tests Refactor JSON field processing by introducing a reusable for_each_json_field function. This change simplifies the code in multiple update functions by eliminating redundant logic. Refactor parsing functions for improved validation Cleanup: Remove unused parsing functions Removed unused functions related to parsing and scenario building in json_benchmark.cc. Improve benchmark output and add bilingual benchmark docs Apply minimal Sonar-focused fixes in benchmark parser/script Measure benchmark timer only around transaction loop Revisit JSON Sonar follow-ups for adapter and enum handling Reduce duplicated JSON backend control-flow blocks fix: probably UB (left shift of neg. val) in ip_tree fix: nullptr dereference in seclang scanner fix: unhandled exception in parser Deduplicate shared JSON backend helper functions
db60119 to
ed42377
Compare
…g-offener-sonar-probleme-7954xf Modernize codebase: nullptr/default initializers, std::string_view, smart pointers and minor cleanups
…nar-befunde-in-pr-#3540 Address open CRITICAL Sonar nesting and cognitive-complexity findings
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



what
This pull request introduces the second prototype for evaluating alternatives to YAJL in JSON processing.
The prototype has been reduced to the following JSON libraries:
As part of this change, YAJL has been completely removed.
why
The goal of this prototype is to continue the evaluation of possible improvements to JSON handling in terms of:
By removing YAJL entirely and reducing the number of candidate libraries, this prototype provides a more focused base for validation, comparison, and further development.
references