org.json library

63 views
Skip to first unread message

Johannes

unread,
Jul 4, 2022, 5:00:34 AM7/4/22
to Jedis
Hi,
Since Jedis 4.0, the library org.json is used. Is it planned to continue using this library? The reason I ask is that its license file is not accepted by our FOSS guidelines. 

Is there a chance to replace it with a different library? 

Thank you.

Sazzadul Hoque

unread,
Jul 4, 2022, 5:57:16 AM7/4/22
to jedis...@googlegroups.com
Hi,
Thanks for the suggestion. This is the first time this topic has come up, so we haven't had this request until now.
But, I'd love to look over a PR if you're interested in contributing one!
But org.json looks very similar to an MIT License.

--
You received this message because you are subscribed to the Google Groups "Jedis" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jedis_redis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jedis_redis/13428326-8bb3-42bc-bb29-fda11195b98bn%40googlegroups.com.

Johannes

unread,
Jul 4, 2022, 8:46:12 AM7/4/22
to Jedis
Thanks for your reply.

The license text is similar but from a legal perspective, it appears not to be ok.The following page provides some more details on this:

Sazzadul Hoque

unread,
Jul 5, 2022, 12:08:25 AM7/5/22
to jedis...@googlegroups.com
Ahh, okay.

Could you list all possible non-issue Java JSON libraries sorted by feasibility? It would be helpful, IF we ever decide to replace org.json and/or someone wants to provide the PR.

--
You received this message because you are subscribed to the Google Groups "Jedis" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jedis_redis...@googlegroups.com.

Johannes

unread,
Jul 6, 2022, 7:53:00 AM7/6/22
to Jedis
Sure. Alternatives could be GSON or JSON-simple. A comparison of JSON libraries is available here.

Sazzadul Hoque

unread,
Jul 6, 2022, 7:33:46 PM7/6/22
to jedis...@googlegroups.com

Johannes

unread,
Dec 19, 2022, 2:10:05 AM12/19/22
to Jedis
I saw that there is a pull request that will allow replacing org.json: https://github.com/redis/jedis/pull/3191
This is awesome and will enable us to keep using Jedis!

Thanks a lot.

Johannes

Sazzadul Hoque

unread,
Dec 22, 2022, 6:37:55 AM12/22/22
to jedis...@googlegroups.com
Hi Johannes,

That PR will not be merged.

But you can now easily exclude 'org.json:json' with 'com.vaadin.external.google:android-json' after https://github.com/redis/jedis/pull/3242.

Reply all
Reply to author
Forward
0 new messages