0

I am trying to use JSONObject in my Servlet class using Netbeans , I imported several versions of json simple jar , but accumulate method is not there ,infact none of the json methods are there when i try to use autocomplete for methods on json object. Any Reasons ?

devcodes
  • 1,038
  • 19
  • 38

1 Answers1

0

Not really an answer, but, what makes you think there is such a method? As you can see on the screenshot, neither JSONObject nor any other class of this library have this method.

Screenshot

Following the Javadoc link you've provided it appears that you're using json-simple library but following Javadoc for org.json library.

I haven't found ready-to-use jar-file for this library so I builded it by myself from GitHub sources. Here is the link on Google Drive. But, take notice, I've only made sure there's no errors during compilation, I haven't tested if it works properly so it's totally up to you. Just import this lib using org.json and try to use it.

Mugi4ok
  • 285
  • 2
  • 5
  • 15