Registry / serialization / johnzon-jsonb

johnzon-jsonb

JSON →
library2.1.0javamavenunverified

Implementation of JSR-353 (JSON Processing) and JSON-Binding for Java.

<dependency> <groupId>org.apache.johnzon</groupId> <artifactId>johnzon-jsonb</artifactId> <version>2.1.0</version> </dependency>
INSTALL
IMPORT
SIG · JOHNZON-JSONB
J
johnzon-jsonb
serializationjavav2.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JsonbBuilder
jakarta.json.bind.JsonbBuilder

Serializes a Java object to JSON using JSON-B.

import jakarta.json.bind.Jsonb; import jakarta.json.bind.JsonbBuilder; public class Example { public static void main(String[] args) { Jsonb jsonb = JsonbBuilder.create(); String json = jsonb.toJson(new Person("John", 30)); System.out.println(json); } static class Person { public String name; public int age; Person(String name, int age) { this.name = name; this.age = age; } } }
Debug
Known issues
breakingJohnzon 2.x uses Jakarta EE 10; not compatible with Java EE 8 or Jakarta EE 9.
fix
Use Johnzon 1.x for Java EE 8 or Johnzon 2.0.x for Jakarta EE 9.
affects: >=2.1.0
Upgrade
Version history
2.1.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
johnzon-jsonb — mvn dependency:get johnzon-jsonb · libregistry