Interface IJsonProblemHandler

    • Method Detail

      • handleUnknownProperty

        boolean handleUnknownProperty​(@NonNull
                                      IClassBinding classBinding,
                                      @Nullable
                                      Object targetObject,
                                      @NonNull
                                      String fieldName,
                                      @NonNull
                                      IJsonParsingContext parsingContext)
                               throws IOException
        Callback used to handle a JSON property that is unknown to the model being parsed.
        Parameters:
        classBinding - the bound class currently describing the data being parsed
        targetObject - the Java object for the parentDefinition
        fieldName - the unknown JSON field name
        parsingContext - the JSON parsing context used for parsing
        Returns:
        true if the attribute was handled by this method, or false otherwise
        Throws:
        IOException - if an error occurred while handling the unrecognized data