java.lang.Object
com.aspose.words.JsonDataLoadOptions
public class JsonDataLoadOptions
- extends java.lang.Object
Represents options for parsing JSON data.
An instance of this class can be passed into constructors of JsonDataSource.
Constructor Summary |
JsonDataLoadOptions()
Initializes a new instance of this class with default options.
|
JsonDataLoadOptions
public JsonDataLoadOptions()
-
Initializes a new instance of this class with default options.
Property Getters/Setters Detail |
getAlwaysGenerateRootObject/setAlwaysGenerateRootObject | |
public boolean getAlwaysGenerateRootObject() / public void setAlwaysGenerateRootObject(boolean value)
|
-
Gets or sets a flag indicating whether a generated data source will always contain an object for a JSON root
element. If a JSON root element contains a single complex property, such an object is not created by default.
The default value is false.
getExactDateTimeParseFormat/setExactDateTimeParseFormat | |
@Deprecated
public java.lang.String getExactDateTimeParseFormat() / public void setExactDateTimeParseFormat(java.lang.String value)
|
- Deprecated.
Gets or sets an exact format for parsing JSON date-time values while loading JSON. The default is null.
Strings encoded using Microsoft® JSON date-time format (for example, "/Date(1224043200000)/") are always
recognized as date-time values regardless of a value of this property. The property defines additional
formats to be used while parsing date-time values from strings in the following way:
-
When ExactDateTimeParseFormat is null, the ISO-8601 format and all date-time formats
supported for the current, English USA, and English New Zealand cultures are used additionally in
the mentioned order.
-
When ExactDateTimeParseFormat is a non-empty string, it is used as a single additional
date-time format utilizing the current culture.
-
When ExactDateTimeParseFormat is an empty string, no additional date-time formats are used.
getExactDateTimeParseFormats/setExactDateTimeParseFormats | |
public java.lang.Iterable<java.lang.String> getExactDateTimeParseFormats() / public void setExactDateTimeParseFormats(java.lang.Iterable<java.lang.String> value)
|
-
Gets or sets exact formats for parsing JSON date-time values while loading JSON. The default is null.
Strings encoded using Microsoft® JSON date-time format (for example, "/Date(1224043200000)/") are always
recognized as date-time values regardless of a value of this property. The property defines additional
formats to be used while parsing date-time values from strings in the following way:
-
When ExactDateTimeParseFormats is null, the ISO-8601 format and all date-time formats
supported for the current, English USA, and English New Zealand cultures are used additionally in
the mentioned order.
-
When ExactDateTimeParseFormats contains strings, they are used as additional date-time
formats utilizing the current culture.
-
When ExactDateTimeParseFormats is empty, no additional date-time formats are used.
getSimpleValueParseMode/setSimpleValueParseMode | |
public int getSimpleValueParseMode() / public void setSimpleValueParseMode(int value)
|
-
Gets or sets 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. The default is
JsonSimpleValueParseMode.LOOSE.
The value of the property is JsonSimpleValueParseMode integer constant.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.