我需要在我的应用程序中进行一些简单的JSON解析,Douglas Crockford library似乎正是我所需要的.

However, I seem to be running into a problem. I'm getting the following error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/json/JSONObject : Unsupported major.minor version 52.0

I Googled around a bit and I get the impression that this is due to some version incompatibility. I've tried changing Java versions but it doesn't seem to help. I'm using Java 7 and Java 7 features in my program and ultimately I want to use Java 7.

How can I resolve this issue?

PS: I looked at Jackson and GSON and definitely don't want to use either so please don't suggest as an alternative.

推荐答案

Have you tried using an older version of the package?

Try: http://mvnrepository.com/artifact/org.json/json/20140107

Json相关问答推荐

仅在通过Jolt输入时才级联Json的值

带有PowerShell内核的NewtonSoft json.Net的奇怪行为

在ConvertFrom-Json之后需要从PowerShell对象中获取数据

递归解码嵌套列表(具有任意深度的列表列表)

使用 JSON 和相对日期设置日历视图中 SharePoint 列表项的背景 colored颜色 格式

删除 JOLT 中的方括号

使用 Power BI 中的 Deneb 视觉效果绘制面积图中的 X 轴日期

如何使用 JOLT 将带有列表的 JSON 项目取消列出为多个项目?

xidel:是否可以从 JSON 对象中检索特定的嵌套值?

将请求中的数据推送到数组中

流编写器未写入 webapi 中的 JSON 文件

ASP.NET MVC - 将 Json 结果与 ViewResult 结合起来

在 JavaScript 中从 Json 数据中删除反斜杠

在 Rails 中使用 JSON 创建嵌套对象

IE中Json响应下载(7~10)

在自定义 JsonConverter 的 ReadJson 方法中处理空对象

在 Webpack 中加载静态 JSON 文件

Spring restTemplate 获取原始 json 字符串

在 JSON.NET 中序列化派生类时的字段顺序

ASP.NET Web API JSON 输出中没有时间的日期