java.lang.Object
cn.herodotus.stirrup.core.foundation.json.jackson2.utils.JsonNodeUtils

public class JsonNodeUtils extends Object

Description: This class is a straight copy from Spring Authorization Server.

作者:
: gengwei.zheng
Date:
: 2022/10/24 15:31
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final com.fasterxml.jackson.core.type.TypeReference<Instant>
     
    static final com.fasterxml.jackson.core.type.TypeReference<Map<String,Object>>
     
    static final com.fasterxml.jackson.core.type.TypeReference<Set<String>>
     
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static boolean
    findBooleanValue(com.fasterxml.jackson.databind.JsonNode jsonNode, String fieldName)
     
    static com.fasterxml.jackson.databind.JsonNode
    findObjectNode(com.fasterxml.jackson.databind.JsonNode jsonNode, String fieldName)
     
    static String
    findStringValue(com.fasterxml.jackson.databind.JsonNode jsonNode, String fieldName)
     
    static <T> T
    findValue(com.fasterxml.jackson.databind.JsonNode jsonNode, String fieldName, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeReference, com.fasterxml.jackson.databind.ObjectMapper mapper)
     
    static com.fasterxml.jackson.databind.JsonNode
    readJsonNode(com.fasterxml.jackson.databind.JsonNode jsonNode, String field)
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • INSTANT

      public static final com.fasterxml.jackson.core.type.TypeReference<Instant> INSTANT
    • STRING_SET

      public static final com.fasterxml.jackson.core.type.TypeReference<Set<String>> STRING_SET
    • STRING_OBJECT_MAP

      public static final com.fasterxml.jackson.core.type.TypeReference<Map<String,Object>> STRING_OBJECT_MAP
  • 构造器详细资料

    • JsonNodeUtils

      public JsonNodeUtils()
  • 方法详细资料

    • findStringValue

      public static String findStringValue(com.fasterxml.jackson.databind.JsonNode jsonNode, String fieldName)
    • findBooleanValue

      public static boolean findBooleanValue(com.fasterxml.jackson.databind.JsonNode jsonNode, String fieldName)
    • findValue

      public static <T> T findValue(com.fasterxml.jackson.databind.JsonNode jsonNode, String fieldName, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeReference, com.fasterxml.jackson.databind.ObjectMapper mapper)
    • findObjectNode

      public static com.fasterxml.jackson.databind.JsonNode findObjectNode(com.fasterxml.jackson.databind.JsonNode jsonNode, String fieldName)
    • readJsonNode

      public static com.fasterxml.jackson.databind.JsonNode readJsonNode(com.fasterxml.jackson.databind.JsonNode jsonNode, String field)