Prototype: Evaluate alternatives to YAJL for JSON processing#3539
Prototype: Evaluate alternatives to YAJL for JSON processing#3539Easton97-Jens wants to merge 15 commits intoowasp-modsecurity:v3/masterfrom
Conversation
…d-architecture Add internal JSON backend layer, autotools integration and backend placeholders
|
|
first of all, thanks for this PR. Unfortunately for some reason (probably because you completely re-organized the test cases) no regression tests were ran. That's very bad. The other think is that I don't think we need as many different JSON parser as you've added here. Here is my idea about this topic (add more JSON parser):
Based on these, we could choose 2 or 3 new JSON parsers, and that would be enough to add as a solution. I know this is a hard work and not trivial, but I'm sure this would be a very big step forward in both engines. |
|
Thanks for your feedback. I'm working on the second prototype where I'm implementing two JSON modules: jsoncons and simdjson, as they're more closely related to Sax. Rapidjson is omitted because the last release is too old. You can find it at https://github.com/Easton97-Jens/ModSecurity branch v3/master-json2 see. It's not finished yet. |
Thanks. Could you add them first to jsonbench? |
|
I opened a PR |




Description
This pull request introduces a prototype exploring the potential replacement of YAJL or the use of alternative JSON libraries.
See related discussion in the issue:
👉 #3308
The goal is to evaluate the current JSON handling and investigate possible improvements in terms of:
As part of this prototype, the following JSON libraries are being considered:
This implementation should be considered experimental and primarily serves as a starting point for discussion.
Notes
Feedback
I’m explicitly open to:
Thanks for taking the time to review 🙌