Interface JsonContext

All Superinterfaces:
SchemaHolder
All Known Subinterfaces:
JsonAdapter<From,To>, JsonDeserializationContext, JsonSerializationContext, JsonSerializationContext.Array, JsonSerializationContext.Obj, JsonSerializationContext.Primitive
All Known Implementing Classes:
JsonStringAdapter, JsonStringBuilder, JsonStringParser

public interface JsonContext extends SchemaHolder
The context. Implemented by JsonSerializationContext and JsonDeserializationContext.
  • Method Details

    • auto

      AutoJSON auto()
      Returns:
      The AutoJSON instance used by the context.
    • schemaHolder

      default SchemaHolder schemaHolder()
    • schema

      default <T> Schema<T> schema(Type type)
      Specified by:
      schema in interface SchemaHolder
      Type Parameters:
      T - the type that schema supports.
      Parameters:
      type - the type of the schema.
      Returns:
      The schema for the specified type.