An implementation of the RFC 8785 JSON Canonicalization Scheme (JCS) specification in Java, utilizing Jakarta JSON Processing.
Formerly part of Titanium JSON-LD
// The canonical version is written to a provided Writer.
JsonCanonicalizer.canonize(JsonValue, Writer);
<dependency>
<groupId>com.apicatalog</groupId>
<artifactId>titanium-jcs</artifactId>
<version>1.0.0</version>
</dependency>
Ensure that the JSON-P provider is added to the classpath if it is not already present.
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>jakarta.json</artifactId>
<version>2.0.1</version>
</dependency>
implementation("com.apicatalog:titanium-jcs:1.0.0")
implementation("org.glassfish:jakarta.json:2.0.1")
All PR's welcome!
Fork and clone the project repository.
> cd titanium-jcs
> mvn package