code: public HashMap<String, Object> getJsonToken() throws Exception {
  
  		HashMap<String, Object> jRTObject = new HashMap<String, Object>();
  
  		ArrayList<Object> jThreads = new ArrayList<Object>();
  		for (CallStack.Thread thread : threads) {
  			jThreads.add(thread.jsonToken());
  		}
  
  		jRTObject.put("threads", jThreads);
  		jRTObject.put("threadCounter", threadCounter);
  
  		return jRTObject;
  	}
docs: See above for why we can't implement jsonToken