com.groupdocs.assembly

Class JsonSimpleValueParseMode

  • java.lang.Object
    • com.groupdocs.assembly.JsonSimpleValueParseMode


  • public final class JsonSimpleValueParseMode
    extends java.lang.Object
    A utility class providing constants. 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.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int length 
      static int LOOSE
      Specifies the mode where types of JSON simple values are determined upon parsing of their string representations.
      static int STRICT
      Specifies the mode where types of JSON simple values are determined from JSON notation itself.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static int fromName(java.lang.String jsonSimpleValueParseModeName) 
      static java.lang.String getName(int jsonSimpleValueParseMode) 
      static int[] getValues() 
      static java.lang.String toString(int jsonSimpleValueParseMode) 
      • Methods inherited from class java.lang.Object

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

      • LOOSE

        public static final 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 final 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 final int length
    • Method Detail

      • getName

        public static java.lang.String getName(int jsonSimpleValueParseMode)
      • toString

        public static java.lang.String toString(int jsonSimpleValueParseMode)
      • fromName

        public static int fromName(java.lang.String jsonSimpleValueParseModeName)
      • getValues

        public static int[] getValues()