gnodet opened a new pull request, #21760:
URL: https://github.com/apache/camel/pull/21760
## Summary
- Add `${toJson(exp)}` function to Simple language that serializes an
expression result to JSON string representation using `Jsoner.serialize()`
- Add `${toJsonBody}` shorthand function that serializes the message body to
JSON
- String values are returned as-is, null values return null, all other types
are serialized to JSON
- Includes compiled Simple (csimple) support via `CSimpleHelper.toJsonBody()`
## Test plan
- [x] Unit test `SimpleTest#testToJson` verifies string passthrough, Map
serialization, and null handling for both `toJson()` and `toJsonBody`
- [x] Existing `testPretty` test still passes
--
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]