連接 http://stackoverflow.com/questions/6132892/consuming-json-in-play-framework-controllerjson
@Global public class JsonObjectBinder implements TypeBinder<JsonObject> { @Override public Object bind(String name, Annotation[] annotations, String value, Class actualClass, Type genericType) throws Exception { return new JsonParser().parse(value); } }
而後就能夠ide
public static void handleJsonBody(JsonObject body) { ... }