com.aspose.words

Class JsonDataLoadOptions

  • 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.
 
Property Getters/Setters Summary
java.lang.StringgetExactDateTimeParseFormat()
void
setExactDateTimeParseFormat(java.lang.Stringvalue)
           Gets or sets an exact format for parsing JSON date-time values while loading JSON. The default is null.
intgetSimpleValueParseMode()
void
           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.
 

    • Constructor Detail

      • JsonDataLoadOptions

        public JsonDataLoadOptions()
        Initializes a new instance of this class with default options.
    • Property Getters/Setters Detail

      • getExactDateTimeParseFormat/setExactDateTimeParseFormat

        public java.lang.String getExactDateTimeParseFormat() / public void setExactDateTimeParseFormat(java.lang.String value)
        
        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.
      • 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.