parent
7870ae81b1
commit
1d73c1712b
|
@ -16,7 +16,7 @@ There are several different ways of generating a JSON document:
|
||||||
equivalent
|
equivalent
|
||||||
|
|
||||||
* Using a third party library to serialize your beans such as
|
* Using a third party library to serialize your beans such as
|
||||||
http://wiki.fasterxml.com/JacksonHome[Jackson]
|
https://github.com/FasterXML/jackson[Jackson]
|
||||||
|
|
||||||
* Using built-in helpers XContentFactory.jsonBuilder()
|
* Using built-in helpers XContentFactory.jsonBuilder()
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ json.put("message","trying out Elasticsearch");
|
||||||
[[java-docs-index-generate-beans]]
|
[[java-docs-index-generate-beans]]
|
||||||
===== Serialize your beans
|
===== Serialize your beans
|
||||||
|
|
||||||
You can use http://wiki.fasterxml.com/JacksonHome[Jackson] to serialize
|
You can use https://github.com/FasterXML/jackson[Jackson] to serialize
|
||||||
your beans to JSON. Please add http://search.maven.org/#search%7Cga%7C1%7Cjackson-databind[Jackson Databind]
|
your beans to JSON. Please add http://search.maven.org/#search%7Cga%7C1%7Cjackson-databind[Jackson Databind]
|
||||||
to your project. Then you can use `ObjectMapper` to serialize your beans:
|
to your project. Then you can use `ObjectMapper` to serialize your beans:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue