Skip to content

Exclude null values from JSON serialization in API responses#811

Closed
geso02 wants to merge 1 commit into
eclipse-basyx:mainfrom
geso02:no_null_values
Closed

Exclude null values from JSON serialization in API responses#811
geso02 wants to merge 1 commit into
eclipse-basyx:mainfrom
geso02:no_null_values

Conversation

@geso02

@geso02 geso02 commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

refs #630

Description:
This pull request configures the Jackson ObjectMapper to exclude null values during JSON serialization. As a result, API responses no longer include fields with null values, leading to cleaner and more efficient payloads.

Changes:

Configured Jackson2ObjectMapperBuilder to omit null properties

API responses are now free of null fields

Verified compatibility with existing API contracts and frontend usage

@geso02 geso02 closed this Aug 11, 2025
@geso02 geso02 reopened this Aug 11, 2025
@geso02 geso02 closed this Aug 11, 2025
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