Jakarta JSON Processing API

The Jakarta JSON Processing API allows developers to parse, generate, transform, and query JSON data using a standard Java API. It is an essential tool for working with JSON in modern Java applications.

Maven Dependency

<dependency>
  <groupId>jakarta.json</groupId>
  <artifactId>jakarta.json-api</artifactId>
  <version>2.0.0</version>
</dependency>

Version Compatibility and Requirements

VersionMinimum Java VersionCompatible Spring FrameworkCompatible Spring Boot
2.0.0Java 8Spring Framework 5.0+Spring Boot 2.0+

Common JSON Processing Classes

Known Vulnerabilities

VulnerabilityVersion AffectedFixed In
Potential JSON Injection Risk1.1.02.0.0

Common Errors and Troubleshooting

ErrorCauseFix
ClassNotFoundException: jakarta.json.JsonThe required `jakarta.json-api` dependency is missing from the project.Ensure the following dependency is added in pom.xml:
<dependency>
  <groupId>jakarta.json</groupId>
  <artifactId>jakarta.json-api</artifactId>
  <version>2.0.0</version>
</dependency>
NoClassDefFoundError: jakarta/json/JsonReaderThe dependency might be present but not loaded due to a failed build or incorrect classpath.Run mvn clean install to rebuild the project and ensure dependencies are correctly loaded.

Manifest File Information


Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Jakarta JSON Processing API
Bundle-SymbolicName: jakarta.json-api
Bundle-Version: 2.0.0
Bundle-Description: Jakarta JSON Processing API provides APIs to parse, generate, transform, and query JSON.
Bundle-License: https://www.eclipse.org/legal/epl-2.0/
Export-Package: jakarta.json;version="2.0.0"
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version>=8))"
Bundle-Vendor: Eclipse Foundation
Automatic-Module-Name: jakarta.json
Specification-Title: Jakarta JSON Processing API
Specification-Version: 2.0
Specification-Vendor: Eclipse Foundation
Implementation-Title: jakarta.json-api
Implementation-Version: 2.0.0
Implementation-Vendor: Eclipse Foundation

References

© 2024 MavenMQ.com. All Rights Reserved.     PrivacyPolicy      SiteMap      Facebook