This is an automated email from the ASF dual-hosted git repository.
pjfanning pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-http.git
The following commit(s) were added to refs/heads/main by this push:
new 0aefbc5ae link to jackson docs in pekko core (#1143)
0aefbc5ae is described below
commit 0aefbc5ae991ca17f6ec271484a942c8bb2c392b
Author: PJ Fanning <[email protected]>
AuthorDate: Wed Jul 8 21:38:32 2026 +0100
link to jackson docs in pekko core (#1143)
---
docs/src/main/paradox/common/json-support.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/docs/src/main/paradox/common/json-support.md
b/docs/src/main/paradox/common/json-support.md
index 94c95b514..8be779b2f 100644
--- a/docs/src/main/paradox/common/json-support.md
+++ b/docs/src/main/paradox/common/json-support.md
@@ -22,6 +22,9 @@ To make use of the support module for (un)marshalling from
and to JSON with [Jac
`pekko-http-jackson` supports Jackson v2 while `pekko-http-jackson3` supports
Jackson v3 (see below for details).
+It is recommended that you read the
@extref[pekko-serialization-jackson](pekko-docs:serialization-jackson.html)
docs and in particular, the Security concerns.
+Pekko HTTP Jackson support also strongly discourages the use of `JsonTypeInfo`
with `Id.CLASS` or `Id.MINIMAL_CLASS`. Use `Id.NAME` or another of the safe
options.
+
Use
`org.apache.pekko.http.javadsl.marshallers.jackson.Jackson.unmarshaller(T.class)`
to create an @apidoc[Unmarshaller[HttpEntity,T]] which expects the request
body (HttpEntity) to be of type `application/json` and converts it to `T`
using Jackson.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]