Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface JsonParserContext

Context properties used by JsonParser.parse during deserialization.

Hierarchy

Index

Properties

Optional decoratorsEnabled

decoratorsEnabled: {}

Property whose keys are the decorators name that will be enabled/disabled during serialization/deserialization.

Type declaration

  • [key: string]: boolean

Optional deserializers

deserializers: CustomMapper<Deserializer>[]

Array of custom user-defined deserializers.

Optional features

features: { deserialization: DeserializationFeature }

Property that defines features to set for ObjectMapper and JsonParser.

Type declaration

Optional forType

Property whose keys are JavaScript Classes and its values are contexts to be used only for that JavaScript Classes.

More specific contexts can be nested one inside the other. In this way, specific contexts can be applied to a JavaScript Class only if the nested JavaScript Class is found as one of the values of the parent JavaScript Class properties.

Optional injectableValues

injectableValues: {}

An Object Literal that stores the values to inject during deserialization, identified by simple String keys.

Type declaration

  • [key: string]: any

Optional mainCreator

mainCreator: () => ClassList<ClassType<any>>

Function that returns a list of JavaScript Classes.

returns

ClassList<ClassType>

Type declaration

Optional withContextGroups

withContextGroups: string[]

List of context groups used to serialize/deserialize JSON objects.

Optional withCreatorName

withCreatorName: string

Define which JsonCreator should be used during deserialization through its name.

Optional withViews

withViews: () => ClassType<any>[]

List of views (see JsonView) used to serialize/deserialize JSON objects.

Type declaration

Generated using TypeDoc