Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.4
-
Component/s: None
-
Labels:None
Description
(suggested by Scott D on Jackson dev list)
In addition to handling core JDK types and beans, it would be useful to be able to deserialize to/from DOM trees. This could be done by adding JsonSerializer/JsonDeserializer implementations for classes in "org.w3c.dom" package.
(sidenote: as an added bonus DOM interfaces are also part of Android SDK)
This seems like a nice way to allow some conversions between Json and Xml. However: one question is whether we should use one of existing "standard" conventions between xml and json.
Looking at Badgerfish convention, one problem is that it doesn't seem to support preserving processing instructions or comments. That may not be a huge problem, but does add round-trip losses.