Java 最新的 org.json
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2611834/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Latest org.json
提问by cp.
Where can I download the latest org.jsonJAR?
在哪里可以下载最新的org.jsonJAR?
The API shows 2010/01/05 for JSONObject
and my last download was 09/06/15. I can't find it on sourceforge or anywhere else. Can someone direct to the latest that will have an API at least as specified as of 2010/01/05?
API 显示为 2010/01/05 JSONObject
,我上次下载是 09/06/15。我在 sourceforge 或其他任何地方都找不到它。有人可以直接访问至少在 2010 年 1 月 5 日具有 API 的最新版本吗?
回答by Matthew Flaschen
I would recommend using json-simpleor one of the other JSON libraries for Java that have developed. This has features the JSON.org API lacks (and I think it will stay that way).
我建议使用json-simple或其他已开发的 Java JSON 库之一。这具有 JSON.org API 缺乏的功能(我认为它将保持这种状态)。
For instance, the json-simple version of JSONObjectimplements Map and JSONArrayimplements List. It also has other features, like a SAX-style API.
例如,JSONObject的 json-simple 版本实现了 Map,而JSONArray实现了 List。它还具有其他功能,例如SAX 风格的 API。
回答by Stephen C
As far as I can tell (in December 2013) ...
据我所知(2013 年 12 月)......
Douglas Crockford's master source repository for "json.org" is now on GitHub - https://github.com/douglascrockford/JSON-java. (The GIT history starts in 2010, and the latest change in "master" is a couple of weeks ago.)
Paul Merlin (aka "eskatos") has Mavenized the code: https://github.com/eskatos/org.json-java
Binary "org.json" JAR files are "regularly" built from Paul Merlin's tree and pushed to Maven Central. You can find them via the "here" link in Paul's README.md file; see the line above.
There are other older (pre-2010) binary releases of the "org.json" JAR file in Maven Central under various guises; review the search results for this link" http://mvnrepository.com/search.html?query=org.json.
Douglas Crockford 的“json.org”主源代码库现在在 GitHub 上 - https://github.com/douglascrockford/JSON-java。(GIT 历史始于 2010 年,“master”的最新变化是几周前。)
Paul Merlin(又名“eskatos”)对代码进行了Maven化:https: //github.com/eskatos/org.json-java
二进制“org.json”JAR 文件“定期”从 Paul Merlin 的树中构建并推送到 Maven Central。您可以通过 Paul 的 README.md 文件中的“here”链接找到它们;见上一行。
Maven Central 中还有其他较旧的(2010 年之前)二进制版本的“org.json”JAR 文件以各种形式出现;查看此链接的搜索结果” http://mvnrepository.com/search.html?query=org.json。
The copyright dates in the "org.json" source code don't mean much. They clearly aren't updated when the code is updated. However, Douglas Crockford does update the @version
javadoc tags, at least in some commits.
“org.json”源代码中的版权日期意义不大。当代码更新时,它们显然没有更新。但是,Douglas Crockford 确实更新了@version
javadoc 标签,至少在某些提交中是这样。
UPDATE (December 2016)
更新(2016 年 12 月)
As of some time in 2015, Douglas Crockford has passed ownership of the Github repository to Sean Leary. The old Github URL for the project now redirects to https://github.com/stleary/JSON-java. The project continues to be relatively active.
截至 2015 年的某个时候,Douglas Crockford 已将 Github 存储库的所有权转让给 Sean Leary。该项目的旧 Github URL 现在重定向到https://github.com/stleary/JSON-java。该项目继续相对活跃。
See also: Where has json.org java library gone?
另请参阅:json.org java 库去哪儿了?
回答by stleary
org.json is now regularly updated in the Maven repository. The latest release is 12 Feb, 2016: http://mvnrepository.com/artifact/org.json/json.
org.json 现在在 Maven 存储库中定期更新。最新版本是 2016 年 2 月 12 日:http: //mvnrepository.com/artifact/org.json/json。
Github location for the code: https://github.com/stleary/JSON-java
代码的 Github 位置:https: //github.com/stleary/JSON-java