Skip to content

Commit

Permalink
Merge pull request #934 from xuwei-k/jackson-pacakge-name
Browse files Browse the repository at this point in the history
fix jackson package name in documents
  • Loading branch information
jroper committed Apr 2, 2013
2 parents 652f268 + e78284c commit f3669bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions documentation/manual/javaGuide/main/json/JavaJsonRequests.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A JSON request is an HTTP request using a valid JSON payload as request body. It
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() {
Expand All @@ -28,7 +28,7 @@ public static Result sayHello() {
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;
...

Expand Down Expand Up @@ -72,7 +72,7 @@ In our previous example we handled a JSON request, but replied with a `text/plai

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

@BodyParser.Of(BodyParser.Json.class)
Expand Down Expand Up @@ -102,4 +102,4 @@ Content-Length: 43
{"status":"OK","message":"Hello Guillaume"}
```

> **Next:** [[Working with XML | JavaXmlRequests]]
> **Next:** [[Working with XML | JavaXmlRequests]]
2 changes: 1 addition & 1 deletion documentation/manual/sandbox/Javahttp.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ String contentType = res.getHeader("Content-Type");

org.w3c.dom.Document doc = res.asXml();

org.codehaus.jackson.JsonNode json = res.asJson();
com.fasterxml.jackson.databind.JsonNode json = res.asJson();

```

Expand Down

0 comments on commit f3669bb

Please sign in to comment.