Documentation
¶
Overview ¶
Package jsnumber implements ECMAScript numeric conversion and serialization for values that arrive as JSON.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromJSON ¶
FromJSON returns ToNumber of the value JSON.parse produces for raw. A nil or empty raw is undefined, which converts to NaN.
func JSON ¶
func JSON(value float64) json.RawMessage
JSON returns JSON.stringify(value): non-finite numbers serialize as null and -0 as 0.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.