I am a beginner Java programmer who wants to use JSON in a project. I followed a programming tutorial (from a book) that asked me to import JSON into my project using the following line:
import com.google.appengine.repackaged.org.json.JSONArray;
But this caused an error, so I replaced it with this line:
import org.json.JSONArray;
This also creates a (other) error:
Unable to allow org.json import
I think the problem is that I actually don't have a JSON library in the Eclipse workspace. How can I do this, so I can use JSONArray? I found a site for JSON, but I'm not sure what to download or how and where to install it:
http://json.org/java/
java json eclipse import
Asher Walther Jan 25 2018-12-12T00: 00Z
source share