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