org.json.simple cannot be resolved

后端 未结 5 756
别跟我提以往
别跟我提以往 2020-12-10 05:00

I\'m a total java newbie and I have this problem. I try to decode Json and in order to do that I want to import these packages:

import org.json.simple.JSONAr         


        
相关标签:
5条回答
  • 2020-12-10 05:16

    Try importing this in build.gradle dependencies

    compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1'
    
    0 讨论(0)
  • 2020-12-10 05:26

    I was facing same issue in my Spring Integration project. I added below JSON dependencies in pom.xml file. It works for me.

    <dependency>
      <groupId>org.json</groupId>
      <artifactId>json</artifactId>
      <version>20090211</version>
    </dependency>
    

    A list of versions can be found here: https://mvnrepository.com/artifact/org.json/json

    0 讨论(0)
  • 2020-12-10 05:29

    The jar file is missing. You can download the jar file and add it as external libraries in your project . You can download this from

    http://www.findjar.com/jar/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.jar.html

    0 讨论(0)
  • 2020-12-10 05:32

    Probably your simple json.jar file isn't in your classpath.

    0 讨论(0)
  • 2020-12-10 05:34

    try this

    <!-- https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple -->
    <dependency>
        <groupId>com.googlecode.json-simple</groupId>
        <artifactId>json-simple</artifactId>
        <version>1.1.1</version>
    </dependency>
    
    0 讨论(0)
提交回复
热议问题