-
-
Notifications
You must be signed in to change notification settings - Fork 36
Migrate JSON serialization to Jackson #344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Fixed Issues (1)Great job! The following issues were fixed in this Pull Request
Use @Checkmarx to reach out to us for assistance. Just send a PR comment with Examples: |
|
YAML was already using Jackson, please, update commit/PR messages accordingly. |
| implementation("com.fasterxml.jackson.core:jackson-annotations") | ||
| implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml") | ||
|
|
||
| implementation("io.github.classgraph:classgraph:4.8.184") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not introduce unnecessary runtime dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These dependencies are required for the following purposes:
com.fasterxml.jackson.core:jackson-annotations:
Used insrc/main/java/org/zaproxy/zest/core/v1/ZestCookie.java,src/main/java/org/zaproxy/zest/core/v1/ZestLoopTokenFileSet.java,src/main/java/org/zaproxy/zest/core/v1/ZestResponse.java, andsrc/main/java/org/zaproxy/zest/impl/jackson/JacksonConfig.javaio.github.classgraph:classgraph:
Look up subtypes of theZestElementclass and register them as subtypes for Jackson polymorphic type handling.
Used insrc/main/java/org/zaproxy/zest/impl/jackson/JacksonConfig.java.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note where the review comment is added. I'm talking about a single dependency, and no, it's not necessary to scan the classpath at runtime.
|
Next time ask before working on assigned issues, avoids duplicating others time. |
b8bcc5f to
2254098
Compare
|
Please, update the changelog as well. |
Replaces Gson with Jackson for JSON serialization in Zest core classes. * Introducing custom configuration for type handling, date formatting, and HTML-safe escaping * Adds a new custom Jackson serializer modifier for Zest-specific serialization needs * Updates dependencies * Adapts tests and constructors for Jackson This improves extensibility, consistency, and future maintainability of serialization logic. Signed-off-by: Umoxfo <[email protected]>
Done. b0171a2 |


Replaces Gson with Jackson for JSON serialization in Zest core classes.
This improves extensibility, consistency, and future maintainability of serialization logic.
Fix #253