This code is extracted from the Android project to allow a clean-room implementation of the popular JSON API to be available under a free license as a small and independent dependency.
The original library is licensed under a standard BSD license with an additional line that requires the use of the software only for "non-evil" purposes. Since this is ill-defined, many downstream consumers of this softwarefind this license condition unacceptable. The moral is don't put jokes into legal documents. More background information is collected by the Debian team members at https://wiki.debian.org/qa.debian.org/jsonevil. Relicensing the original library is impossible. See https://github.com/stleary/JSON-java/issues/331 for more information.
<dependency> <groupId>com.github.openjson</groupId> <artifactId>openjson</artifactId> <version>1.0.10</version> </dependency>
Thanks to the Android team for doing 99% of the work.
Thanks also to Simon Lessard for lending his critical eye and excellent suggestions.
Thanks to Tobias Soloschenko and Martin Grigorov with suggestions so open-json can help Apache Wicket avoid the problem.