org.springframework.boot.json

Interface JsonParser

    • Method Summary

      All Methods Instance Methods Abstract 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.
    • Method Detail

      • parseMap

        java.util.Map<java.lang.String,java.lang.Object> parseMap(java.lang.String json)
                                                           throws JsonParseException
        Parse the specified JSON string into a Map.
        Parameters:
        json - the JSON to parse
        Returns:
        the parsed JSON as a map
        Throws:
        JsonParseException - if the JSON cannot be parsed
      • parseList

        java.util.List<java.lang.Object> parseList(java.lang.String json)
                                            throws JsonParseException
        Parse the specified JSON string into a List.
        Parameters:
        json - the JSON to parse
        Returns:
        the parsed JSON as a list
        Throws:
        JsonParseException - if the JSON cannot be parsed