GluuFederation / GluuFederation/oxAuth

Replace JSONObject with Jackson 2.x ObjectNode

Open
#1,064 2 comments 0 reactions 1 assignee Claimed by @yuriyz View on GitHub
Dominant language
Java
Stars
425
Forks
145
PR merge metrics
No merged PRs in 30d

Description

There are many places where oxAuth builds JSON using JSONObject manually. This object is deprecated. During migration to Jackson 2.x we added org.json.JSONObject for code compatibility. Now to proper work with JSON we uses special mapper:
```
ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new JsonOrgModule());
```

With ObjectNode we don't need to register JsonOrgModule on each call. Also we can remove org.json library.

This issue is related to https://github.com/GluuFederation/oxAuth/issues/811

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.