上QQ阅读APP看书,第一时间看更新
Running your first JSON-B 1.0 code
Jakarta JSON Binding is an API for converting Java objects into/from JSON messages in a standardized way. It defines a default mapping algorithm to convert Java classes into JSON and still lets you customize your own algorithms.
With JSON-B (JSON-Binding), Jakarta EE has a complete set of tools to work with JSON, such as the JSON API and JSON-P (JSON-Padding). No third-party frameworks are needed anymore (although you are still free to use them).
This quick recipe will show you how to use JSON-B to convert a Java object into and from a JSON message.