code: public void sendJsonToUrl(Object data, String url) {
          sendToUrl(JSON.toJSONString(data), url);
      }
docs: Send JSON representation of given data object to all connections
  connected to given URL
  
  @param data the data object
  @param url the url