restlet / restlet-framework-java

The first REST API framework for Java
https://restlet.talend.com
Other
654 stars 284 forks source link

Restlet JSON extension uses non-free org.json module #1193

Open tazle opened 8 years ago

tazle commented 8 years ago

The Restlet JSON extension seems to be using the non-free (https://wiki.debian.org/qa.debian.org/jsonevil) org.json module for JSON processing.

It would be nice to see it use some less problematic alternative.

thboileau commented 8 years ago

Hello @tazle , thanks a lot for pointing this issue. There are actually some other alternatives such as the extensions based on GSon, and another one based on Jackson (which also supports other formats such as xml, json smile, etc). Do you think these alternatives are good enough?

tazle commented 8 years ago

From licensing perspective, I don' think there's a difference, since both Jackson and Gson seem available under Apache 2.0 license only.

I personally prefer Jackson for JSON processing, but I don't think that's much of an argument here :)

thboileau commented 8 years ago

Hi, if your point is that such "non-free" license could cause some troubles, we think that there is actually no issue. This extension is optional, and as soon as you don't add it into your classpath, there is no "contamination" to your own code. Do you agree with that?

tazle commented 8 years ago

I mean that there is no difference between Jackson and Gson from licensing perspective. The org.json license is what is problematic.