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

Fork: Use Jackson instead of org.json #49

Closed
DavidBiesack opened this issue Feb 13, 2015 · 6 comments
Closed

Fork: Use Jackson instead of org.json #49

DavidBiesack opened this issue Feb 13, 2015 · 6 comments

Comments

@DavidBiesack
Copy link
Contributor

We have a toolchain based on Jackson; I'd like to use JSONassert with Jackson JSON objects. I've forked the skyscreamer/JSONassert repo and replaced org.json with FasterXML/jackson-core and FasterXML/jackson-databind.

The biggest hurdle is the unit tests; Jackson is more strict and does not allow unquoted object names and unquoted values; but requires double quotes. This requires updating all the unit tests to use quoted names/values such as

{"a":[{"background":"white","id":1,"type":"row"} ...

instead of

{a:[{background:white,id:1,type:row}

(While Jackson has Feature.ALLOW_UNQUOTED_FIELD_NAMES, it does not have a Feature to allow unquoted values.)

My real question is: is that fork reasonable to push back to skyscreamer/JSONassert, perhaps in a different branch, or would it be better to push the fork elsewhere as a separate project (because current users of skyscreamer/JSONassert may depend on using unquoted strings)? If I do publish a different fork on GitHub, would you prefer I change the package names as well? I would certainly provide attribution to skyscreamer/JSONassert as the base of the fork, and release it under the same Apache 2.0 license.

thanks.

@ebourg
Copy link

ebourg commented Apr 11, 2016

@DavidBiesack Any chance you could push your Jackson based JSONassert on GitHub? I'd be interested in using a version that doesn't depend on the non-free json.org library.

@DavidBiesack
Copy link
Contributor Author

@ebourg I'd like the JSONAssert maintainer to answer my question as to how/where the fork should go, here as a PR or branch, or elsewhere. Have not heard anything in 14 months, tho...

@jgoldhammer
Copy link

+1 for changing it...

@puntogil
Copy link
Contributor

hi
any new aboutremovel o non free json.org?
as reported in #44 all linux distribution can't use Your library (Fedora in my case)
thanks in advance

@DavidBiesack
Copy link
Contributor Author

See PR #67 Change the implementation for org.json to one with a more open license
This uses an API compatible clean-room implementation of the org.json classes, so the impact is much lower than switching to Jackson. While this still makes it more difficult to use JSONassert with other tools that use Jackson, it is possible and the license would not be a problem.

If that PR is merged, I'll close this issue.

@carterpage
Copy link
Member

Sorry for the delay. I've merged #67. I don't plan to support Jackson.

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

5 participants