Milestone2
·
6 commits
to master
since this release
Feature Enhancements:
1) Selective XML to JSON Conversion via JSONPointer
- Introduced an optimized toJSONObject(Reader reader, JSONPointer path) method to extract only a specific subtree of an XML document based on a JSONPointer.
- Uses a streaming XML parser to avoid full document parsing, improving performance for large XML files.
- Supports normalization of trailing slashes in path inputs.
2) XML Subtree Replacement Support
- Added overloaded method toJSONObject(Reader reader, JSONPointer path, JSONObject replacement) to allow replacing a subtree at a specified path with a provided JSON object.
- Handles both shallow (1–2 levels) and deep paths using efficient parsing strategies.
- Special handling added for trailing slashes: when present, the content inside the target is replaced, not the key itself.
3) Public API Exposure for JSON Pointer Token Processing
- Made unescapeToken(String token) publicly accessible for consistent token unescaping across modules.
Infrastructure Improvements:
- Added CountingReader, a custom reader wrapper that tracks the parsing progress in character count, helping