|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.libs.Json
public class Json
Helper functions to handle JsonNode values.
Constructor Summary | |
---|---|
Json()
|
Method Summary | ||
---|---|---|
static
|
fromJson(org.codehaus.jackson.JsonNode json,
java.lang.Class<A> clazz)
Convert a JsonNode to a Java value |
|
static org.codehaus.jackson.node.ObjectNode |
newObject()
Creates a new empty ObjectNode. |
|
static org.codehaus.jackson.JsonNode |
parse(java.lang.String src)
Parse a String representing a json, and return it as a JsonNode. |
|
static java.lang.String |
stringify(org.codehaus.jackson.JsonNode json)
Convert a JsonNode to its string representation. |
|
static org.codehaus.jackson.JsonNode |
toJson(java.lang.Object data)
Convert an object to JsonNode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Json()
Method Detail |
---|
public static org.codehaus.jackson.JsonNode toJson(java.lang.Object data)
data
- Value to convert in Json.public static <A> A fromJson(org.codehaus.jackson.JsonNode json, java.lang.Class<A> clazz)
json
- Json value to convert.clazz
- Expected Java value type.public static org.codehaus.jackson.node.ObjectNode newObject()
public static java.lang.String stringify(org.codehaus.jackson.JsonNode json)
public static org.codehaus.jackson.JsonNode parse(java.lang.String src)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |