<%@ page language=\"java\" import=\"net.sf.json.JSONArray\" %>
<%
JSONArray arrayObj=new JSONArray();
arrayObj.add(\"MCA\");
arrayObj.add(\"Amit K
I also had the same problem, make sure you Download JSONLibraries and place it into Tomcat's lib directory . Also restart the server before executing your jsp file.
I had the same problem it is solved after i placed json libraries in WEB-INF\lib folder If you are using eclipse it helps to clean build once.
--Kiran.Kumar
Either the JSON library is not there where you think it is, or the JAR file of the JSON library which you've downloaded simply doesn't contain that class. Investigate the JAR file using a ZIP or RAR tool. There should be a net/sf/json/JSONArray.class
file inside the JAR. If it is missing, then you probably downloaded the wrong library.