Interface IJsonWritingContext

    • Method Detail

      • writeDefinitionValue

        void writeDefinitionValue​(@NonNull
                                  IClassBinding targetDefinition,
                                  @NonNull
                                  Object targetObject,
                                  @NonNull
                                  Map<String,​? extends IBoundNamedInstance> instances)
                           throws IOException
        Write the data described by the provided targetDefinition as a JSON value.
        Parameters:
        targetDefinition - the bound Module definition describing the structure of the JSON data to write
        targetObject - the Java object data to write
        instances - the set of named instances to write
        Throws:
        IOException - if an error occurred while writing the JSON