类 BasicJsonParser

  • 所有已实现的接口:
    JsonParser

    public class BasicJsonParser
    extends AbstractJsonParser
    Really basic JSON parser for when you have nothing else available. Comes with some limitations with respect to the JSON specification (e.g. only supports String values), so users will probably prefer to have a library handle things instead (Jackson or Snake YAML are supported).
    从以下版本开始:
    1.2.0
    另请参阅:
    JsonParserFactory
    • 方法详细资料

      • parseMap

        public Map<String,​ObjectparseMap​(String json)
        从接口复制的说明: JsonParser
        Parse the specified JSON string into a Map.
        参数:
        json - the JSON to parse
        返回:
        the parsed JSON as a map
      • parseList

        public List<ObjectparseList​(String json)
        从接口复制的说明: JsonParser
        Parse the specified JSON string into a List.
        参数:
        json - the JSON to parse
        返回:
        the parsed JSON as a list