
Package org.hl7.fhir.r5.formats
Class JsonNumberCanonicalizer
java.lang.Object
org.hl7.fhir.r5.formats.JsonNumberCanonicalizer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
toCanonicalJson
(String numberString) Converts a number string to canonical JSON representation per RFC 8785 Following ECMAScript Section 7.1.12.1 algorithmstatic String
toCanonicalJsonPrecise
(String numberString) More precise implementation using round-trip verification This should handle the RFC 8785 test cases correctly
-
Constructor Details
-
JsonNumberCanonicalizer
public JsonNumberCanonicalizer()
-
-
Method Details
-
toCanonicalJson
Converts a number string to canonical JSON representation per RFC 8785 Following ECMAScript Section 7.1.12.1 algorithm -
toCanonicalJsonPrecise
More precise implementation using round-trip verification This should handle the RFC 8785 test cases correctly
-