Class JohnzonJsonb

    • Method Detail

      • fromJson

        public <T> T fromJson​(String str,
                              Class<T> type)
                       throws jakarta.json.bind.JsonbException
        Specified by:
        fromJson in interface jakarta.json.bind.Jsonb
        Throws:
        jakarta.json.bind.JsonbException
      • wrapPrimitiveOptional

        private <T> T wrapPrimitiveOptional​(Object object,
                                            Type type)
      • unwrapPrimitiveOptional

        private Type unwrapPrimitiveOptional​(Type type)
      • fromJson

        public <T> T fromJson​(String str,
                              Type runtimeType)
                       throws jakarta.json.bind.JsonbException
        Specified by:
        fromJson in interface jakarta.json.bind.Jsonb
        Throws:
        jakarta.json.bind.JsonbException
      • fromJson

        public <T> T fromJson​(Reader reader,
                              Class<T> type)
                       throws jakarta.json.bind.JsonbException
        Specified by:
        fromJson in interface jakarta.json.bind.Jsonb
        Throws:
        jakarta.json.bind.JsonbException
      • fromJson

        public <T> T fromJson​(Reader reader,
                              Type runtimeType)
                       throws jakarta.json.bind.JsonbException
        Specified by:
        fromJson in interface jakarta.json.bind.Jsonb
        Throws:
        jakarta.json.bind.JsonbException
      • fromJson

        public <T> T fromJson​(InputStream stream,
                              Class<T> type)
                       throws jakarta.json.bind.JsonbException
        Specified by:
        fromJson in interface jakarta.json.bind.Jsonb
        Throws:
        jakarta.json.bind.JsonbException
      • fromJson

        public <T> T fromJson​(InputStream stream,
                              Type runtimeType)
                       throws jakarta.json.bind.JsonbException
        Specified by:
        fromJson in interface jakarta.json.bind.Jsonb
        Throws:
        jakarta.json.bind.JsonbException
      • toJson

        public String toJson​(Object inObject)
                      throws jakarta.json.bind.JsonbException
        Specified by:
        toJson in interface jakarta.json.bind.Jsonb
        Throws:
        jakarta.json.bind.JsonbException
      • toJson

        public String toJson​(Object inObject,
                             Type runtimeType)
                      throws jakarta.json.bind.JsonbException
        Specified by:
        toJson in interface jakarta.json.bind.Jsonb
        Throws:
        jakarta.json.bind.JsonbException
      • toJson

        public void toJson​(Object inObject,
                           Writer writer)
                    throws jakarta.json.bind.JsonbException
        Specified by:
        toJson in interface jakarta.json.bind.Jsonb
        Throws:
        jakarta.json.bind.JsonbException
      • toJson

        public void toJson​(Object inObject,
                           Type runtimeType,
                           Writer writer)
                    throws jakarta.json.bind.JsonbException
        Specified by:
        toJson in interface jakarta.json.bind.Jsonb
        Throws:
        jakarta.json.bind.JsonbException
      • toJson

        public void toJson​(Object inObject,
                           OutputStream stream)
                    throws jakarta.json.bind.JsonbException
        Specified by:
        toJson in interface jakarta.json.bind.Jsonb
        Throws:
        jakarta.json.bind.JsonbException
      • toJson

        public void toJson​(Object inObject,
                           Type runtimeType,
                           OutputStream stream)
                    throws jakarta.json.bind.JsonbException
        Specified by:
        toJson in interface jakarta.json.bind.Jsonb
        Throws:
        jakarta.json.bind.JsonbException
      • isNotObjectOrArray

        private boolean isNotObjectOrArray​(Object object)
      • unwrapOptional

        private Object unwrapOptional​(Object inObject)
      • isArray

        private boolean isArray​(Type runtimeType)
      • isCollection

        private boolean isCollection​(Type runtimeType)
      • fromJson

        public <T> T fromJson​(jakarta.json.stream.JsonParser json,
                              Class<T> type)
        Specified by:
        fromJson in interface JsonbExtension
      • fromJson

        public <T> T fromJson​(jakarta.json.stream.JsonParser parser,
                              Type runtimeType)
        Specified by:
        fromJson in interface JsonbExtension
      • toJson

        public void toJson​(Object object,
                           jakarta.json.stream.JsonGenerator jsonGenerator)
        Specified by:
        toJson in interface JsonbExtension
      • toJson

        public void toJson​(Object object,
                           Type runtimeType,
                           jakarta.json.stream.JsonGenerator jsonGenerator)
        Specified by:
        toJson in interface JsonbExtension
      • isValueProvider

        private boolean isValueProvider​(Reader reader)
      • isValueConsumer

        private boolean isValueConsumer​(Writer writer)
      • matchesType

        private boolean matchesType​(Class<?> type,
                                    Class<?> rawType)