Package org.webpki.json
Class NumberToJSON
java.lang.Object
org.webpki.json.NumberToJSON
JSON as specified by ECMAScript
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
serializeNumber
(double value) Formats a number according to ECMAScript.
-
Constructor Details
-
NumberToJSON
public NumberToJSON()
-
-
Method Details
-
serializeNumber
Formats a number according to ECMAScript.This code is emulating 7.1.12.1 of the EcmaScript V6 specification.
- Parameters:
value
- Value to be formatted- Returns:
- String representation
-