Class JsonInputParser

  • All Implemented Interfaces:
    InputParser<com.jsoniter.any.Any>

    @MachineParser
    public final class JsonInputParser
    extends java.lang.Object
    implements InputParser<com.jsoniter.any.Any>
    Implements the default input parser for JSON data. Name-based access shall be rather fast, however, index-based access is currently a limited compromise. Warning: This implementation is not stable and may change during performance optimization.
    Author:
    Holger Eichelberger, SSE
    • Field Detail

      • LAZY_ANY_CLS

        private static final java.lang.Class<?> LAZY_ANY_CLS
      • LAZY_ANY_HEAD_FIELD

        private static final java.lang.reflect.Field LAZY_ANY_HEAD_FIELD
      • LAZY_ANY_TAIL_FIELD

        private static final java.lang.reflect.Field LAZY_ANY_TAIL_FIELD
    • Constructor Detail

      • JsonInputParser

        public JsonInputParser()
    • Method Detail

      • parse

        public JsonInputParser.JsonParseResult parse​(byte[] data)
                                              throws java.io.IOException
        Description copied from interface: InputParser
        Parses a chunk of data received from a source.
        Specified by:
        parse in interface InputParser<com.jsoniter.any.Any>
        Parameters:
        data - the data
        Returns:
        parsing result
        Throws:
        java.io.IOException - if parsing fails for some reasons