Package net.sf.saxon.serialize.jcs
package net.sf.saxon.serialize.jcs
This package is cloned from https://github.com/erdtman/java-json-canonicalization. The package has full support for JSON Canonicalization. The only part Saxon uses is the double-to-string conversion, but this is the majority of the code.
The code is Apache-licensed.
A small number of changes have been made to enable transpilation to C#:
- The class JsonCanonicalizer has been dropped, since we don't need it (we only need the numeric formatting)
- In NumberDiyFp, instance fields have been renamed to avoid clashing with method names
- In NumberDtoA, calls on CSharp.emitCode() have been added to handle fall-through in switch statements
- In NumberDtoA, replaced "10." by "10.0"
- In NumberDtoA, dropped redundant assignment "S = mhi = null"
-
Classes