Skip to content
/ API4JSON Public

API's to manipulate JSON data modeled after the IBM json4j library API's including key-sorted serialization

License

Notifications You must be signed in to change notification settings

IBM/API4JSON

Repository files navigation

API4JSON

Version 2.0.1

This library is modeled after the IBM json4j API's. It provides serialization using sorted keys. The goal is to provide a drop in alternative to the com.ibm.json4j-x.x.x.jar file for people wanting the same API structure, but needing to install the jar file in cloud functions or to use with command line utilities using JSON. One minor improvement over the json4j library is, numbers are always treated as Long or Double values for consistency when working with parsed JSON content. Though the put API will accept other Numeric values, they are stored as Long or Double, and retrieved as such. In json4j, if you stored an Integer and used the get API, it would return an Integer. But, if you serialized and then parsed the data, it would change to returning a Long. The same was true in json4j for a Float becoming a Double after parsing serialized content.

I have attempted to perform conversions for unicode characters, and to preserve solidus escape sequences.

For people familiar with the IBM json4j library, simply use this jar and change the import statements from using com.ibm.json.java to com.api.json and everything should work as before.

Developers, please use Eclipse version 2021-03 or later.

Please contact Nathaniel Mills (wnm3@us.ibm.com) with questions.

About

API's to manipulate JSON data modeled after the IBM json4j library API's including key-sorted serialization

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •