Class NumberToJSON

java.lang.Object
org.webpki.json.NumberToJSON

public final class NumberToJSON extends Object
JSON as specified by ECMAScript
  • Constructor Details

    • NumberToJSON

      public NumberToJSON()
  • Method Details

    • serializeNumber

      public static String serializeNumber(double value)
      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