org.springframework.boot.json

Class JacksonJsonParser

    • Constructor Summary

      Constructors 
      Constructor and Description
      JacksonJsonParser()
      Creates an instance with a default ObjectMapper that is created lazily.
      JacksonJsonParser(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Creates an instance with the specified ObjectMapper.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.List<java.lang.Object> parseList(java.lang.String json)
      Parse the specified JSON string into a List.
      java.util.Map<java.lang.String,java.lang.Object> parseMap(java.lang.String json)
      Parse the specified JSON string into a Map.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JacksonJsonParser

        public JacksonJsonParser(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
        Creates an instance with the specified ObjectMapper.
        Parameters:
        objectMapper - the object mapper to use
      • JacksonJsonParser

        public JacksonJsonParser()
        Creates an instance with a default ObjectMapper that is created lazily.
    • Method Detail

      • parseMap

        public java.util.Map<java.lang.String,java.lang.Object> parseMap(java.lang.String json)
        Description copied from interface: JsonParser
        Parse the specified JSON string into a Map.
        Parameters:
        json - the JSON to parse
        Returns:
        the parsed JSON as a map
      • parseList

        public java.util.List<java.lang.Object> parseList(java.lang.String json)
        Description copied from interface: JsonParser
        Parse the specified JSON string into a List.
        Parameters:
        json - the JSON to parse
        Returns:
        the parsed JSON as a list