JSONObject result = new JSONObject();报空指针异常,原因是包没导入完全。

要使用JSONObject,需要以下6个jar包:

1.commons-beanutils-1.7.0.jar

2.commons-collections-3.2.1.jar

3.commons-lang-2.3.jar

4.commons-logging-1.0.4.jar

5.ezmorph-1.0.3.jar

6.json-lib-2.1.jar

相关文章:

  • 2021-09-09
  • 2021-12-17
  • 2021-10-18
  • 2021-08-17
  • 2021-12-29
  • 2021-11-29
猜你喜欢
  • 2021-05-18
  • 2021-08-23
  • 2022-12-23
  • 2021-10-20
  • 2021-05-31
  • 2022-12-23
相关资源
相似解决方案