MAPPED
configuration by default. However this can be changed by creating a @Provider
which can change the default JSONConfiguration
.The example below changes the configuration to use BadgerFish which provides a better representation of an XML document. This representation does not provide the visual clarity that JSON generally provides, and is not generally human readable beyond basic notation. However, as noted that is not the point.
JSONJAXBContextResolver.java
This class specifically handles the Customer object, and maps it to use BadgerFish. Output:
0 comments :
Post a Comment