Class BasicJsonReader


  • public class BasicJsonReader
    extends Object
    A lightweight, reflection-less way of parsing JSON. Parses JSON to these basic Java types: - List - Map - String - Boolean - Number
    • Constructor Detail

      • BasicJsonReader

        public BasicJsonReader​(com.fasterxml.jackson.core.JsonParser parser)
    • Method Detail

      • read

        public static Object read​(com.fasterxml.jackson.core.JsonParser parser)
                           throws com.fasterxml.jackson.core.JsonProcessingException,
                                  IOException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
        IOException
      • read

        public static Object read​(InputStream in)
                           throws com.fasterxml.jackson.core.JsonProcessingException,
                                  IOException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
        IOException
      • read

        public static Object read​(Reader in)
                           throws com.fasterxml.jackson.core.JsonProcessingException,
                                  IOException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
        IOException
      • read

        public static Object read​(String string)
                           throws com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • read

        public static Object read​(org.elasticsearch.common.bytes.BytesReference data,
                                  org.elasticsearch.common.xcontent.XContentType contentType)
                           throws com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • readObject

        public static Map<String,​Object> readObject​(String string)
                                                   throws com.fasterxml.jackson.core.JsonProcessingException,
                                                          IOException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
        IOException
      • readObject

        public static Map<String,​Object> readObject​(org.elasticsearch.common.bytes.BytesReference data,
                                                          org.elasticsearch.common.xcontent.XContentType contentType)
                                                   throws com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • read

        public Object read()
                    throws IOException,
                           com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        IOException
        com.fasterxml.jackson.core.JsonProcessingException