oxAuth icon indicating copy to clipboard operation
oxAuth copied to clipboard

Replace JSONObject with Jackson 2.x ObjectNode

Open yurem opened this issue 5 years ago • 2 comments

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

yurem avatar May 06 '19 05:05 yurem

Duplicate of https://github.com/GluuFederation/oxAuth/issues/1079 ?

nynymike avatar Jan 17 '20 03:01 nynymike

#1079 is about creation bean for discovery and then re-using that bean in other places (client, oxd). This ticket is about removing deprecated code.

yuriyz avatar Jan 17 '20 07:01 yuriyz