com.cedarsoftware:json-io

Java JSON serialization


License
Apache-2.0

Documentation

json-io

Maven Central Javadoc

Great tool for Java serialization to and from JSON format. Available on Maven Central. This library has no dependencies on other libraries for runtime other than our own java-util. The json-io.jarfile is only185K and java-util is 250K. Compatible with JDK1.8 through JDK 22.


To include in your project:

Gradle
implementation 'com.cedarsoftware:json-io:4.20.0'
Maven
    <dependency>
      <groupId>com.cedarsoftware</groupId>
      <artifactId>json-io</artifactId>
      <version>4.20.0</version>
    </dependency>

User Guide

Releases

5.0.0 (future)

  • Maintained: Fully
  • Bundling: Both OSGi (Open Service Gateway initiative) and JPMS (Java Platform Module System)
  • Java Package: com.cedarsoftware.io
  • Java: JDK17+ (Class file 61 format, will include module-info.class)
  • API
  • Static methods on JsonIo ==> toJson(), toObjects(), formatJson(), deepCopy()
  • Use ReadOptionsBuilder and WriteOptionsBuilder to configure JsonIo.
  • Use JsonReader.ClassFactory for difficult classes (hard to instantiate & fill).
  • Use JsonWriter.JsonClassWriter to customize the output JSON for a particular class
  • Updates will be 5.1.0, 5.2.0, ...

4.20.x (current)

4.14.x (supported)

Featured on json.org.

For useful Java utilities, check out java-util


Sponsors

Alt text

YourKit supports open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of YourKit Java Profiler and YourKit .NET Profiler, innovative and intelligent tools for profiling Java and .NET applications.

Intellij IDEA from JetBrains Intellij IDEA


License

Copyright (c) 2007 Cedar Software LLC.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    <a href="http://www.apache.org/licenses/LICENSE-2.0">License</a>

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

by John DeRegnaucourt and Kenny Partlow