com.groupdocs.assembly

Class JsonDataLoadOptions

  • java.lang.Object
    • com.groupdocs.assembly.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

      Constructors 
      Constructor and Description
      JsonDataLoadOptions()
      Initializes a new instance of this class with default options.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getExactDateTimeParseFormat()
      Gets an exact format for parsing JSON date-time values while loading JSON.
      int getSimpleValueParseMode()
      Gets a mode for parsing JSON simple values (null, boolean, number, integer, and string) while loading JSON.
      void setExactDateTimeParseFormat(java.lang.String value)
      Sets an exact format for parsing JSON date-time values while loading JSON.
      void setSimpleValueParseMode(int value)
      Sets a mode for parsing JSON simple values (null, boolean, number, integer, and string) while loading JSON.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonDataLoadOptions

        public JsonDataLoadOptions()
        Initializes a new instance of this class with default options.
    • Method Detail

      • getSimpleValueParseMode

        public int getSimpleValueParseMode()
        Gets 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.
        Returns:
        A mode for parsing JSON simple values (null, boolean, number, integer, and string) while loading JSON. The returned value is one of JsonSimpleValueParseMode constants.
      • setSimpleValueParseMode

        public void setSimpleValueParseMode(int value)
        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.
        Parameters:
        value - A mode for parsing JSON simple values (null, boolean, number, integer, and string) while loading JSON. The value must be one of JsonSimpleValueParseMode constants.
      • getExactDateTimeParseFormat

        public java.lang.String getExactDateTimeParseFormat()
        Gets 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:

        Returns:
        An exact format for parsing JSON date-time values while loading JSON.
      • setExactDateTimeParseFormat

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

        Parameters:
        value - An exact format for parsing JSON date-time values while loading JSON.