srilakshmikanthanp opened a new pull request, #1792: URL: https://github.com/apache/struts/pull/1792
### Summary - Java records are now serialized using `RecordComponent` metadata, as `Introspector.getBeanInfo()` does not expose record components through the traditional JavaBeans property model. - `java.util.Optional` now serializes as its contained value or `null` when empty. `Optional.empty()` is treated as `null` when `excludeNullProperties` is enabled, including for bean/record properties and map values. - `@JSON` and `@JSONFieldBridge` annotations can now be applied directly to record components. I implemented these changes based on my understanding of the existing codebase and tried to keep the implementation minimal and consistent with the current design. I'd appreciate a review of the implementation and approach. If you'd like any changes, please let me know and I'll update the PR. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
