
unit-test-json-serialization
Provides patterns for unit testing JSON serialization/deserialization
by giuseppe-trisciuoglioFree
Description
Unit test JSON serialization is an agent skill for testing how Java objects are converted to and from JSON. It uses Spring's @JsonTest together with Jackson to check plain DTO mapping, custom serializers and deserializers, field name mappings set with @JsonProperty, and fields hidden with @JsonIgnore. It also covers nested objects, date and time formatting for types such as LocalDateTime and Date, null handling and missing fields, and deserialization of polymorphic types. The skill is useful when a change to a model class could alter the JSON an API sends or accepts, and you want a test to catch it before release. The agent uses these patterns to write the tests for your project's DTOs. Check the expected JSON shapes against what your API consumers actually send and receive.…
Highlights
- @JsonTest slices with Jackson
- Custom serializers and deserializers
- Field name mapping and ignored fields
- Date and time format tests
- Polymorphic type deserialization
Ratings & Reviews
No ratings yet
Be the first to rate unit-test-json-serialization.
People also visit

unit-test-mapper-converter
Provides patterns for unit testing mappers, converters, and bean mappings
unit-test-json-serialization FAQ
What does the skill test?
How DTOs and models serialise to JSON and deserialise back, including custom serializers, names, dates and polymorphic types.
How do I install it?
Run npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-json-serialization.
Which annotations does it cover?
@JsonProperty and @JsonIgnore, along with Spring's @JsonTest.
Has the skill been security audited?
Yes. Gen Agent Trust Hub shows Pass, Socket shows Pass and Snyk shows Pass.
What are the best unit-test-json-serialization alternatives?
Popular alternatives to unit-test-json-serialization include unit-test-controller-layer, unit-test-mapper-converter and unit-test-exception-handler. See all unit-test-json-serialization alternatives








