Class GsonJsonParser

java.lang.Object
org.springframework.boot.json.AbstractJsonParser
org.springframework.boot.json.GsonJsonParser
All Implemented Interfaces:
JsonParser

public class GsonJsonParser extends AbstractJsonParser
Thin wrapper to adapt Gson to a JsonParser.
Since:
1.2.0
See Also:
  • Constructor Details

    • GsonJsonParser

      public GsonJsonParser()
  • Method Details

    • 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