Package com.apicatalog.jcs
Provides an implementation of the
RFC 8785 JSON
Canonicalization Scheme (JCS) in Java.
The JCS specification defines a deterministic way to serialize JSON so that the same JSON data model always produces the same byte sequence. This ensures stable and repeatable representations of JSON values, which is critical for use cases such as digital signatures, hashing, and integrity verification.
The Jcs class offers methods for:
- Canonicalization – converting JSON values into their
canonical string form using
Jcs.canonize(javax.json.JsonValue)and related methods. - Equality comparison – determining whether two JSON
values are canonically equal using
Jcs.equals(javax.json.JsonValue, javax.json.JsonValue).
This package relies on Jakarta JSON Processing (JSON-P) for parsing and representing JSON data.
-
Class Summary Class Description Jcs An implementation of the RFC 8785 JSON Canonicalization Scheme (JCS) specification in Java.JsonCanonicalizer Deprecated. UseJcsinstead.