Package jodd.json
Class JsonParserBase
java.lang.Object
jodd.json.JsonParserBase
- Direct Known Subclasses:
JsonParser
Just a base class of
JsonParser that contains
various utilities, to reduce the size of a parser.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectconvertType(Object value, Class targetType) Converts type of the given value.protected MapToBeancreateMapToBean(String classMetadataName) Creates new instance ofMapToBean.protected voidinjectValueIntoObject(Object target, jodd.introspector.PropertyDescriptor pd, Object value) Injects value into the targets property.protected Collection<Object> newArrayInstance(Class targetType) Creates new type for JSON array objects.protected ObjectnewObjectInstance(Class targetType) Creates new object or aHashMapif type is not specified.
-
Field Details
-
HASHMAP_SUPPLIER
-
LAZYMAP_SUPPLIER
-
ARRAYLIST_SUPPLIER
-
LAZYLIST_SUPPLIER
-
mapSupplier
-
listSupplier
-
classnameWhitelist
-
strictTypes
protected boolean strictTypes
-
-
Constructor Details
-
JsonParserBase
public JsonParserBase(boolean strictTypes)
-
-
Method Details
-
createMapToBean
Creates new instance ofMapToBean. -
newArrayInstance
Creates new type for JSON array objects. It returns a collection. Later, the collection will be converted into the target type. -
newObjectInstance
Creates new object or aHashMapif type is not specified. -
injectValueIntoObject
protected void injectValueIntoObject(Object target, jodd.introspector.PropertyDescriptor pd, Object value) Injects value into the targets property. -
convertType
Converts type of the given value.
-