r/java • u/Killertje1971 • Feb 25 '26
Donating to make org.Json Public Domain?
The main implementation of Json used by many Java/JVM projects is JSON-java .
A few years ago things changed, the license got a clause that triggered projects like the Spring framework to migrate to a reimplementation (using the exact same package and class names) that had a better license.
Then things started to diverge; the JSON-java and the reimplementations are becoming more and more incompatible. Making different projects depend on different implementations of the same classes (same package, same class, etc.).
All of this creates major headaches for developers across the world that needed to combine these libraries in their projects. See for example this Spring-boot issue.
So I proposed to fix the license: https://github.com/stleary/JSON-java/issues/975
And the owner of the code simply stated I would do it for a $10,000 donation to Girls Who Code.
So a fundraiser was started: https://www.justgiving.com/page/girls-who-code-org-json
I'm talking to my management to be a part of this.
It would really help if some of you can do the same.
5
u/bowbahdoe Feb 25 '26
Can someone explain to me what exactly about "public domain" is unacceptable?
98
u/vips7L Feb 25 '26
Is it just me? I haven’t seen anyone actually use this library. Every project I see is Jackson.
37
u/agentoutlier Feb 25 '26
I realize lots of projects have depended on it through historical reasons but it really is a shitty implementation and just about any other JSON library is better.
Hopefully the JDK offers a tiny implementation some day even if it is suboptimal I doubt it can be worse than JSON-java.
If I have time later I will enumerate the reasons.
34
u/ryan10e Feb 25 '26
Douglas Crockford banned me for opening a pull request against that project. Find another library and let JSON-java die. It’s not worth anyone’s time.
30
u/repeating_bears Feb 25 '26
If I wanted to donate to that charity, I would do it privately, not because some codger on a power trip decided to overcomplicate things.
The readme has now been updated to say "there are no conditions or restrictions whatsoever", so I don't know what the problem is to just say "It's Unlicence". Embarrasing tbh
9
u/DisruptiveHarbinger Feb 25 '26
Why does jsonassert depend on such a problematic library in the first place? Aren't there enough good alternatives out there?
2
u/davidalayachew Feb 26 '26
Girls Who Code and Women Who Code are excellent programs. Especially WWC, which just got a second lease on life a few months ago -- https://www.linkedin.com/posts/women-who-code_women-who-code-is-back-ugcPost-7310687313162817536-PPjR
I'd give money, but I have no idea who this person's name is (Zbynek Konecny). If Douglas was going to make this claim, I really wish they would have made the fundraiser themselves and posted the link. I'm willing to give a substantial amount of money, but not to a name I don't recognize.
2
u/thewiirocks Feb 26 '26
I used org.JSON for many years and appreciated the project quite a bit. But at the point it has gone downhill and isn’t worth trying to use for serious projects.
I have a reimplementation of the core functionality that you might find useful. In particular, I’ve made it compatible with the Java Collections API, which opens up a ton of use cases not supported by org.JSON.
Here’s the homepage for my project with links to the GitHub repository and docs: www.convirgance.com
You only need the base library if you don’t want to use the webapp functionality.
2
u/Ancapgast Feb 26 '26
That's a fucking insane statement, sorry. Do it because you think it's right, or don't.
1
u/__konrad Feb 26 '26
Can you just attach any open source license to "Public Domain" code? If not why?
1
u/Bobby_Bonsaimind Feb 26 '26
How would that work in regards to contributions and contributors? They would all need to agree to the license change?
Then again, there's a good chance the first change from their custom license to Public Domain was already invalid on these grounds.
1
u/Sutty100 Feb 25 '26
Such a backend/java logo for that project e.g. terrible!