send window in json