类 JsonUtility


  • public class JsonUtility
    extends Object
    作者:
    Yun
    • 字段详细资料

    • 方法详细资料

      • getMapper

        public com.fasterxml.jackson.databind.ObjectMapper getMapper()
        返回:
        default ObjectMapper;
      • readTree

        public com.fasterxml.jackson.databind.JsonNode readTree​(String content)
        返回:
        root node
      • readTree

        public com.fasterxml.jackson.databind.JsonNode readTree​(File file)
        返回:
        null if have exceptions
      • isNodeHasValue

        public boolean isNodeHasValue​(com.fasterxml.jackson.databind.JsonNode node)
        返回:
        false if it is not value node, node is missing and node value is null
      • isNodeHasStringValue

        public boolean isNodeHasStringValue​(com.fasterxml.jackson.databind.JsonNode node)
        返回:
        true if node value has non-empty string