File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/main/java/com/fasterxml/jackson/databind Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1938,9 +1938,16 @@ public <T> T treeToValue(TreeNode n, Class<T> valueType)
1938
1938
1939
1939
/**
1940
1940
* 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
1943
1943
* 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.
1944
1951
*
1945
1952
* @param <T> Actual node type; usually either basic {@link JsonNode} or
1946
1953
* {@link com.fasterxml.jackson.databind.node.ObjectNode}
You can’t perform that action at this time.
0 commit comments