Skip to content

Use streaming jsoncons SAX parsing and add regression tests for all engines - #4

Open
Easton97-Jens wants to merge 1 commit into
digitalwave:mainfrom
Easton97-Jens:codex/jsoncons-sax-regression-tests
Open

Easton97-Jens wants to merge 1 commit into
digitalwave:mainfrom
Easton97-Jens:codex/jsoncons-sax-regression-tests

Conversation

@Easton97-Jens

Copy link
Copy Markdown
Contributor

Replace the DOM-based jsoncons adapter with streaming SAX parsing, exact numeric values, checked argument paths, parser limits, strict validation and error propagation.

Apply the expanded regression matrix to all selected JSON engines. Include explicit output, Unicode, numeric boundaries, malformed input, large documents, limits and silent mode.

Validation:

  • Build succeeded.
  • JSONCONS: 260 passed, 0 failed, 0 skipped.
  • C API: 220 checks passed, including ASan/UBSan.
  • Sanitized CLI: 226 passed, 0 failed, 40 unavailable YAJL comparison skips.
  • All engines: 1563 passed, 629 existing failures, 156 unsupported-limit skips. All non-jsoncons failure labels also occurred in the preserved baseline.

See docs/validation-results.md and docs/jsoncons-sax.md for measurements, compatibility differences and limitations.

Related: owasp-modsecurity/ModSecurity#3308 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant