garbagetown/playdocja — pull request #566 by wm3 (2014-03-12 16:34:28+00:00)
Title: manual/javaGuide/main/json/JavaJsonRequests.md

- https://github.com/garbagetown/playdocja/blob/2.2.0/documentation/2.2.0/manual/javaGuide/main/json/JavaJsonRequests.md
```
--- /Users/garbagetown/Desktop/2.1.5/manual/javaGuide/main/json/JavaJsonRequests.md	2013-09-19 22:53:02.000000000 +0900
+++ /Users/garbagetown/Desktop/2.2.0/manual/javaGuide/main/json/JavaJsonRequests.md	2013-09-19 10:11:22.000000000 +0900
@@ -7,7 +7,7 @@
By default an action uses an **any content** body parser, which you can use to retrieve the body as JSON (actually as a Jackson `JsonNode`):

'''java
-import org.codehaus.jackson.JsonNode;
+import com.fasterxml.jackson.databind.JsonNode;
...

public static Result sayHello() {
@@ -28,7 +28,7 @@
Of course it’s way better (and simpler) to specify our own `BodyParser` to ask Play to parse the content body directly as JSON:

'''java
-import org.codehaus.jackson.JsonNode;
+import com.fasterxml.jackson.databind.JsonNode;
import play.mvc.BodyParser;
...

@@ -72,7 +72,7 @@

'''java
import play.libs.Json;
-import org.codehaus.jackson.node.ObjectNode;
+import com.fasterxml.jackson.databind.JsonNode;
...

@BodyParser.Of(BodyParser.Json.class)
@@ -102,4 +102,4 @@
{"status":"OK","message":"Hello Guillaume"}
'''

-> **Next:** [[Working with XML | JavaXmlRequests]]
\ No newline at end of file
+> **Next:** [[Working with XML | JavaXmlRequests]]

```