Interface XContentParser

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
AbstractXContentParser, MapXContentParser, XContentSubParser

@PublicApi(since="1.0.0") public interface XContentParser extends Closeable
Interface for pull - parsing XContent see XContentType for supported types.

To obtain an instance of this class use the following pattern:

     MediaType mediaType = MediaTypeRegistry.JSON;
     XContentParser parser = mediaType.xContent().createParser(
          NamedXContentRegistry.EMPTY, ParserField."{\"key\" : \"value\"}");
 
Opensearch.api: