Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please consider org.json:json alternative #1279

Closed
DPUkyle opened this issue Aug 24, 2020 · 10 comments
Closed

Please consider org.json:json alternative #1279

DPUkyle opened this issue Aug 24, 2020 · 10 comments
Assignees

Comments

@DPUkyle
Copy link

DPUkyle commented Aug 24, 2020

Hi @KengoTODA I see that spotbugs/discuss#95 was merged and released with tool v4.1.0 - that's great!

I have one question about the license of the org.json:json library - it's unconventional and is actually banned by ASF: http://apache.org/legal/resolved.html#category-x -> see "Nonsensical licenses".

Debian lists some alternatives but I'm sure this list is not very current, nor comprehensive: https://wiki.debian.org/qa.debian.org/jsonevil

My organization specifically objects to the license's use of the language "The Software shall be used for Good, not Evil.", as such I'd encourage you to please consider alternative implementations to produce the SARIF report. As a consequence, we will be unable to use spotbugs v4.1.0 or higher ☹️

FYI @lgolding @michaelcfanning

@KengoTODA KengoTODA self-assigned this Aug 25, 2020
@henrik242
Copy link
Contributor

@DPUkyle So, you'd like to use Spotbugs for Evil?

@KengoTODA KengoTODA transferred this issue from spotbugs/discuss Sep 4, 2020
@welcome
Copy link

welcome bot commented Sep 4, 2020

Thanks for opening your first issue here! 😃
Please check our contributing guideline. Especially when you report a problem, make sure you share a Minimal, Complete, and Verifiable example to reproduce it in this issue.

@KengoTODA
Copy link
Member

Working on this issue. Gson seems smaller than Jackson, so I'm trying to play with Gson.

The Gradle plugin isn't working well to generate both annotation and additionalProperties, so reported the issue as jsonschema2dataclass/js2d-gradle#10
If problem will not be resolved, I'll try to code without annotation.

@sabberworm
Copy link

My organization specifically objects to the license's use of the language "The Software shall be used for Good, not Evil."

@DPUkyle I think you should quit working for this company ASAP…

@h-vetinari
Copy link

Any update on this? This is blocking (much of) the hadoop ecosystem from moving to Java 11+, see https://issues.apache.org/jira/browse/HADOOP-17269

@michaelcfanning
Copy link

@eddynaka @yongyan-gh

@KengoTODA, want any help with this problem? We're just about to propose a new SARIF contribution that provides for SARIF-friendly rule ids. Maybe we could finish whatever work you've started with gson as well?

Glad to help if you want it.

@KengoTODA
Copy link
Member

The current blocker for me is json2pojo does not generate fields of MessageStrings as expected.

For the current implementation, I manually coded MessageStrings and other classes. But it's better to generate it based on JSON schema. This is why I want to use json2pojo via https://github.com/eirnym/js2p-gradle

@michaelcfanning
Copy link

ok! we'll take a look and see if we can get the SARIF schema through json2pojo today. More soon...

@yongyan-gh
Copy link
Contributor

yongyan-gh commented Feb 19, 2021

The current blocker for me is json2pojo does not generate fields of MessageStrings as expected.

For the current implementation, I manually coded MessageStrings and other classes. But it's better to generate it based on JSON schema. This is why I want to use json2pojo via https://github.com/eirnym/js2p-gradle

Hi @KengoTODA , do we have to have POJO classes for resolving this issue?
Can we leverage existing model classes used to generate Sarif log, and replace org.json lib with gson lib?
I can help with this request.

@aajisaka
Copy link
Contributor

Now I think this issue is fixed by #1437 and can be closed. Thank you @yongyan-gh and @KengoTODA!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants