You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to parse JSON numbers with full precision and improve parsing performance, we propose adding a new RawNumber type for representing parsed JSON number values.
The design of this feature includes the following steps:
Add a new kRawNumber enum to represent JSON number values, and add a RawNumberclass to distinguish it from stringview type.
Provide support for construct, modifying, copying, and comparing RawNumber values. Especially, validate the number in construct and set API, because the number is from the user and maybe invalid numbers
Use IsRawNumber to check for the presence of a RawNumber, while IsNumber continues to check for numeric types.
In order to parse JSON numbers with full precision and improve parsing performance, we propose adding a new
RawNumber
type for representing parsed JSON number values.The design of this feature includes the following steps:
kRawNumber
enum to represent JSON number values, and add aRawNumber
class to distinguish it fromstringview
type.RawNumber
values. Especially, validate the number in construct and set API, because the number is from the user and maybe invalid numbersIsRawNumber
to check for the presence of aRawNumber
, whileIsNumber
continues to check for numeric types.Implementation branch: #60
Status: To be reviewed.
The text was updated successfully, but these errors were encountered: