code: public static String toJSONString(Map map){
  		final StringWriter writer = new StringWriter();
  		
  		try {
  			writeJSONString(map, writer);
  			return writer.toString();
  		} catch (IOException e) {
  			// This should never happen with a StringWriter
  			throw new RuntimeException(e);
  		}
  	}
docs: Convert a map to JSON text. The result is a JSON object.
  If this map is also a JSONAware, JSONAware specific behaviours will be omitted at this top level.
  
  @see org.json.simple.JSONValue#toJSONString(Object)
  
  @param map
  @return JSON text, or "null" if map is null.