Package org.apache.juneau.json
Class Json5Parser
- All Implemented Interfaces:
AnnotationProvider
,JsonMetaProvider
Parses any valid JSON text into a POJO model.
Content-Type types: application/json5, text/json5
application/json5 .
Media types
HandlesDescription
Identical toJsonParser
but with the media type Notes:
- This class is thread safe and reusable.
See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.json.JsonParser
JsonParser.Builder, JsonParser.Strict
Nested classes/interfaces inherited from class org.apache.juneau.parser.Parser
Parser.Null
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Json5Parser
Default parser, Accept=application/json5.Fields inherited from class org.apache.juneau.json.JsonParser
DEFAULT_STRICT
Fields inherited from class org.apache.juneau.Context
CONTEXT_APPLY_FILTER
Fields inherited from interface org.apache.juneau.AnnotationProvider
DISABLE_ANNOTATION_CACHING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Creates a builder from this context object.static JsonParser.Builder
create()
Creates a new builder for this object.Methods inherited from class org.apache.juneau.json.JsonParser
createSession, getJsonBeanPropertyMeta, getJsonClassMeta, getSession, isValidateEnd
Methods inherited from class org.apache.juneau.parser.ReaderParser
getFileCharset, getStreamCharset, isReaderParser, properties
Methods inherited from class org.apache.juneau.parser.Parser
canHandle, createParserBuilder, doParse, getDebugOutputLines, getListener, getMediaTypes, getPrimaryMediaType, isAutoCloseStreams, isStrict, isTrimStrings, isUnbuffered, parse, parse, parse, parse, parse, parse, parseArgs, parseIntoCollection, parseIntoMap
Methods inherited from class org.apache.juneau.BeanContextable
getBeanContext
Methods inherited from class org.apache.juneau.Context
createBuilder, firstAnnotation, firstAnnotation, firstAnnotation, firstAnnotation, firstDeclaredAnnotation, forEachAnnotation, forEachAnnotation, forEachAnnotation, forEachAnnotation, forEachDeclaredAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, hasAnnotation, init, isDebug, lastAnnotation, lastAnnotation, lastAnnotation, lastAnnotation, lastDeclaredAnnotation, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.juneau.AnnotationProvider
firstAnnotation, firstAnnotation, firstAnnotation, firstAnnotation, firstDeclaredAnnotation, forEachAnnotation, forEachAnnotation, forEachAnnotation, forEachAnnotation, forEachDeclaredAnnotation, lastAnnotation, lastAnnotation, lastAnnotation, lastAnnotation, lastDeclaredAnnotation
-
Field Details
-
DEFAULT
Default parser, Accept=application/json5.
-
-
Constructor Details
-
Json5Parser
Constructor.- Parameters:
builder
- The builder for this object.
-
-
Method Details
-
create
Creates a new builder for this object.- Returns:
- A new builder.
-
copy
Description copied from class:Context
Creates a builder from this context object.Builders are used to define new contexts (e.g. serializers, parsers) based on existing configurations.
- Overrides:
copy
in classJsonParser
- Returns:
- A new Builder object.
-