Package org.apache.juneau.json
Class Json5Parser
- All Implemented Interfaces:
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.StrictNested classes/interfaces inherited from class org.apache.juneau.parser.Parser
Parser.Null -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Json5ParserDefault parser, Accept=application/json5.Fields inherited from class org.apache.juneau.json.JsonParser
DEFAULT_STRICT, validateEndFields inherited from class org.apache.juneau.parser.Parser
autoCloseStreams, consumes, debugOutputLines, listener, strict, trimStrings, unbufferedFields inherited from class org.apache.juneau.BeanContextable
beanContextFields inherited from class org.apache.juneau.Context
CONTEXT_APPLY_FILTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a builder from this context object.static JsonParser.Buildercreate()Creates a new builder for this object.Methods inherited from class org.apache.juneau.json.JsonParser
createSession, getJsonBeanPropertyMeta, getJsonClassMeta, getSession, isValidateEndMethods inherited from class org.apache.juneau.parser.ReaderParser
getFileCharset, getStreamCharset, isReaderParser, propertiesMethods 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, parseIntoMapMethods inherited from class org.apache.juneau.BeanContextable
getBeanContextMethods inherited from class org.apache.juneau.Context
createBuilder, getAnnotationProvider, init, isDebug, toString
-
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:ContextCreates a builder from this context object.Builders are used to define new contexts (e.g. serializers, parsers) based on existing configurations.
- Overrides:
copyin classJsonParser- Returns:
- A new Builder object.
-