JsonSimpleValueParseMode

Inheritance: java.lang.Object

public class JsonSimpleValueParseMode

Specifies a mode for parsing JSON simple values (null, boolean, number, integer, and string) while loading JSON. Such a mode does not affect parsing of date-time values.

Fields

FieldDescription
LOOSESpecifies the mode where types of JSON simple values are determined upon parsing of their string representations.
STRICTSpecifies the mode where types of JSON simple values are determined from JSON notation itself.
length

Methods

MethodDescription
fromName(String jsonSimpleValueParseModeName)
getName(int jsonSimpleValueParseMode)
getValues()
toString(int jsonSimpleValueParseMode)

LOOSE

public static int LOOSE

Specifies the mode where types of JSON simple values are determined upon parsing of their string representations. For example, the type of ‘prop’ from the JSON snippet ‘{ prop: “123” }’ is determined as integer in this mode.

STRICT

public static int STRICT

Specifies the mode where types of JSON simple values are determined from JSON notation itself. For example, the type of ‘prop’ from the JSON snippet ‘{ prop: “123” }’ is determined as string in this mode.

length

public static int length

fromName(String jsonSimpleValueParseModeName)

public static int fromName(String jsonSimpleValueParseModeName)

Parameters:

ParameterTypeDescription
jsonSimpleValueParseModeNamejava.lang.String

Returns: int

getName(int jsonSimpleValueParseMode)

public static String getName(int jsonSimpleValueParseMode)

Parameters:

ParameterTypeDescription
jsonSimpleValueParseModeint

Returns: java.lang.String

getValues()

public static int[] getValues()

Returns: int[]

toString(int jsonSimpleValueParseMode)

public static String toString(int jsonSimpleValueParseMode)

Parameters:

ParameterTypeDescription
jsonSimpleValueParseModeint

Returns: java.lang.String