The com.ibm.json packages are not available in the jaxrs-2.1 feature

The json4j com.ibm.json packages were previously included in the jaxrs-1.1 and jaxrs-2.0 Liberty features. However, the packages are no longer included in the jaxrs-2.1 feature.

Note: This rule is flagged once per Eclipse project or Java archive.

Option 1 (Recommended): Refactor your application to use JSON-P

It is recommended to switch your application from using JSON4J to using the JSON Processing (JSON-P) APIs provided by the Java EE specification. Once you have made the necessary application changes, no further changes to the Liberty server.xml configuration is required since the jsonp-1.1 feature is enabled by the jaxrs-2.1 feature.

For more information on JSON-P, see Java API for JSON Processing.

Option 2: Add the json-1.0 feature in server.xml

If you want to continue using the json4j com.ibm.json packages, add the json-1.0 feature to your Liberty server.xml configuration file.

For more information on the json-1.0 feature, see JavaScript Object Notation for Java.