Settings that can be used to make changes how string is parsed to JSON or JArray.
public bool AllowNonWhiteCharactersAfterObject
Sets whatever it is acceptable for input string to have other than non-white characters after end of JSON or JArray object.
Value | If set to true, non-white characters are accepted at end of object. Default is false, so expecting that input string ends at the end of JSON or JArray object. |
public bool FixRoundedFloatingPointMinMaxValues
If set true, numeric values that seem to be just rounded float.MinValue, float.MaxValue, double.MinValue or double.MaxValue are set to those exact values.
C# floating point numbers rounding sometimes causes unwanted effects. In some systems, for example double.Parse(double.MaxValue.ToString()) will cause number overflow exception. TotalJSON will use exact values when creating JSON formatted string using CreateString() method. But if JSON is created using other methods and it is possible JSON may contain rounded floating point min/max values, it is better to set this setting true so that parsed values are what they are expected to be.
Value | True to fix rounded floating point values to float/double min/max values. False to parse numbers exactly as they are. Default is true. |
public int ParseStartIndex
Sets index of input string where parsing JSON or JArray object is started.
Value | The index of the parse start. Default is 0. |