An implementation of the CBOR-LD 1.0 in Java.
LD-CLI ia a command line utility for Ubuntu, Mac and Windows.
Java 17+
<dependency>
<groupId>com.apicatalog</groupId>
<artifactId>iridium-cbor-ld</artifactId>
<version>0.1.3</version>
</dependency>
Java 8+, Android API Level >=31
implementation("com.apicatalog:iridium-cbor-ld-jre8:0.1.3")
Add JSON-P provider, if it is not on the classpath already.
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>jakarta.json</artifactId>
<version>2.0.1</version>
</dependency>
implementation("org.glassfish:jakarta.json:2.0.1")
byte[] encoded = CborLd.encoder(document).encode();
document = CborLd.decoder(encoded).decode();
Set DbConfig
as a configuration option to an encoder or decoder API.
e.g.
CborLd.encoder(document)
.config(DbConfig.INSTANCE)
.encode();
CborLd.decoder(document)
.config(DbConfig.INSTANCE)
.decode();
All PR's welcome!
Fork and clone the project repository.
> cd iridium-cbor-ld
> mvn clean package
> cd iridium-cbor-ld
> mvn -f pom_jre8.xml clean package
- CBOR-LD 1.0
- Concise Binary Object Representation (CBOR)
- Hello CBOR-LD Presentation
- cbor.io
- JavaScript CBOR-LD Processor
- CBOR Playground
Commercial support is available at filip26@gmail.com