Create a JNum from a String.
Create a JNum from a String.
This factory constructor validates the string (essentially, parsing it as a JSON value). If you are already sure this string is a valid JSON number, you can use the DeferLong(_) or DeferNum(_) constructors directly.
Create a JNum from a Double.
Create a JNum from a Double.
This factory constructor performs some error-checking (ensures that the given value is a finite Double). If you have already done this error-checking, you can use the DoubleNum(_) or DeferNum(_) constructors directly.
Create a JNum from a Long.
Create a JNum from a Long.
This is identical to calling the LongNum(_) constructor.