core/play/src/main/java/play/libs/Json.java
public static <A> A fromJson(JsonNode json, Class<A> clazz) {
    try {
      return mapper().treeToValue(json, clazz);
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
public static <A> A fromJson(JsonNode json, Class<A> clazz) {
    try {
      return mapper().treeToValue(json, clazz);
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
Converts a JsonNode to a Java value

@param <A> the type of the return value.
@param json Json value to convert.
@param clazz Expected Java value type.
@return the return value.