Skip to content

Commit a748091

Browse files
committed
javadoc improvement
1 parent 4c3921d commit a748091

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,9 +1938,16 @@ public <T> T treeToValue(TreeNode n, Class<T> valueType)
19381938

19391939
/**
19401940
* Reverse of {@link #treeToValue}; given a value (usually bean), will
1941-
* construct equivalent JSON Tree representation. Functionally same
1942-
* as if serializing value into JSON and parsing JSON as tree, but
1941+
* construct equivalent JSON Tree representation. Functionally similar
1942+
* to serializing value into JSON and parsing JSON as tree, but
19431943
* more efficient.
1944+
*<p>
1945+
* NOTE: one known difference from actual serialization is that so-called
1946+
* "raw values" are not supported -- since they are opaque sequence of
1947+
* bytes to include (which may or may not be supported by the backend)
1948+
* they can not be converted using this method. It may be possible to
1949+
* support conversions using full serialization, if raw values must be
1950+
* preserved.
19441951
*
19451952
* @param <T> Actual node type; usually either basic {@link JsonNode} or
19461953
* {@link com.fasterxml.jackson.databind.node.ObjectNode}

0 commit comments

Comments
 (0)