Call the one-argument version of this method instead. If this method
call used positiveOnly = true, check that the String does
not begin with '-' before calling that version. If this method
call used integersOnly = true, check that the String does not
contain '.', 'E', or 'e' before calling that version.
Instead, call ParseJSONNumber(str, jsonoptions) with a JSONOptions that
sets preserveNegativeZero to the desired value, either true or
false. If this method call used positiveOnly = true, check that the
String does not begin with '-' before calling that
version. If this method call used integersOnly = true, check
that the String does not contain '.', 'E',
or 'e' before calling that version.
Instead, convert this object to a number (with .getAsNumber()()),
and use that number's.getAbs()() method.
Instead, convert both CBOR objects to numbers (with .AsNumber()), and
use the first number's.Add() method.
Instead, use.getToObject()<byte>() in .NET or
.getToObject()(Byte.class) in Java.
Instead, use.getToObject()<PeterO.Numbers.EDecimal>()
in .NET or
.getToObject()(com.upokecenter.numbers.EDecimal.class)
in Java.
Instead, use.getToObject()<PeterO.Numbers.EFloat>() in.NET
or .getToObject()(com.upokecenter.numbers.EFloat.class)
in Java.
Instead, use.getToObject()<PeterO.Numbers.EInteger>()
in .NET or
.getToObject()(com.upokecenter.numbers.EInteger.class)
in Java.
Instead, use.getToObject()<PeterO.Numbers.ERational>() in
.NET or.getToObject()(com.upokecenter.numbers.ERational.class)
in Java.
Instead, use the following: (cbor.AsNumber().ToInt16Checked()),
or .getToObject()<short>() in .NET.
Instead, use the following: (cbor.AsNumber().ToInt64Checked()), or
.ToObject<long>() in.NET.
Instead, use the following: (cbor.isNumber()
&& cbor.AsNumber().CanFitInDouble()).
Instead, use.CanValueFitInInt32(), if the application allows only CBOR
integers, or (cbor.isNumber()
&&cbor.AsNumber().CanFitInInt32()), if the application
allows any CBOR Object convertible to an integer.
Instead, use CanValueFitInInt64(), if the application allows only CBOR
integers, or (cbor.isNumber()
&&cbor.AsNumber().CanFitInInt64()), if the application
allows any CBOR Object convertible to an integer.
Instead, use the following: (cbor.isNumber()
&& cbor.AsNumber().CanFitInSingle()).
Instead, use the following: (cbor.CanValueFitInInt32() if only
integers of any tag are allowed, or (cbor.isNumber()
&& cbor.AsNumber().CanTruncatedIntFitInInt32()).
Instead, use the following: (cbor.CanValueFitInInt64() if only
integers of any tag are allowed, or (cbor.isNumber()
&& cbor.AsNumber().CanTruncatedIntFitInInt64()).
Instead, convert both CBOR objects to numbers (with .AsNumber()), and
use the first number's.Divide() method.
Instead, use.getFromJSONString()(str,
new JSONOptions(\allowduplicatekeys = true\))
or .getFromJSONString()(str, new
JSONOptions(\allowduplicatekeys = false\)), as appropriate.
Instead, use the following: (cbor.isNumber()
&& cbor.AsNumber().IsFinite()).
Instead, use the following: (cbor.isNumber()
&& cbor.AsNumber().IsInfinity()).
Instead, use the following: (cbor.isNumber()
&& cbor.AsNumber().IsInteger()).
Instead, use the following: (cbor.isNumber()
&& cbor.AsNumber().IsNaN()).
Instead, use (cbor.IsNumber()
&& cbor.AsNumber().IsNegative()).
Instead, use the following: (cbor.isNumber()
&& cbor.AsNumber().IsNegativeInfinity()).
Instead, use the following: (cbor.isNumber()
&& cbor.AsNumber().IsPositiveInfinity()).
Instead, use the following: (cbor.isNumber()
&& cbor.AsNumber().IsZero()).
Instead, convert both CBOR objects to numbers (with .AsNumber()), and
use the first number's.Multiply() method.
Instead, convert this object to a number (with .AsNumber()), and
use that number's.Negate() method.
Instead, use.getReadJSON()(stream,
new JSONOptions(\allowduplicatekeys = true\))
or .getReadJSON()(stream,
new JSONOptions(\allowduplicatekeys = false\)),
as appropriate.
Instead, convert both CBOR objects to numbers (with .AsNumber()), and
use the first number's.Remainder() method.
Instead, convert this object to a number with.AsNumber(), and use the
Sign property in.NET or the signum method in Java. Either will
treat not-a-number (NaN) values differently than here.
Instead, convert both CBOR objects to numbers (with .AsNumber()), and
use the first number's.Subtract() method.
This property now has no effect. This library now includes necessary
padding when writing traditional base64 to JSON and includes no
padding when writing base64url to JSON, in accordance with the
revision of the CBOR specification.