org.springframework.boot.json

Class JacksonJsonParser

    • 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 Map<String,Object> parseMap(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 List<Object> parseList(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

Copyright © 2018 Pivotal Software, Inc.. All rights reserved.