code: public void sendJsonToUser(Object data, String username) {
          sendToUser(JSON.toJSONString(data), username);
      }
docs: Send JSON representation of given data object to all connections of a user
  @param data the data object
  @param username the username