title: How to convert a string object to jsonobject in multithreaded environment in java
body: <p>i am using net.sf.json.JSONSerializer to convert a java.lang.String object to net.sf.json.JSONObject .But this JSONSerializer  internally use the java.util.HashMap which is not recommended to use in multithreaded environment.Because HashMap  is not Synchronized it self ,so in threaded environment it is possible that concurrent access to the map corrupted the internal data resulting in unpredictable behaviour like infinite loop which cause a thread got stuck,which i am currently facing in my project.</p>
  
  <p>so please suggest the appropriate class can be used to convert a String object to JSONObject in multithreaded environment.</p>