как сохранить куки в строчку?

andropovleva

Client
Регистрация
23.11.2019
Сообщения
580
Благодарностей
45
Баллы
28
имеем вот такой формат

[
{
"domain": ".yandex.ru",
"expirationDate": 1620093328.0,
"hostOnly": true,
"httpOnly": false,
"name": "mda",
"path": "/",
"sameSite": "Unspecified",
"secure": false,
"session": false,
"storeId": null,
"value": "0",
"id": 1
},
{
"domain": ".yandex.ru",
"expirationDate": 1672797328.0,
"hostOnly": true,
"httpOnly": false,
"name": "is_gdpr",
"path": "/",
"sameSite": "None",
"secure": true,
"session": false,
"storeId": null,
"value": "0",
"id": 1
},
{
"domain": ".yandex.ru",
"expirationDate": -62135596800.0,
"hostOnly": true,
"httpOnly": false,
"name": "gdpr",
"path": "/",
"sameSite": "None",
"secure": true,
"session": true,
"storeId": null,
"value": "0",
"id": 1
},
{
"domain": ".yandex.ru",
"expirationDate": 1925085374.0,
"hostOnly": true,
"httpOnly": false,
"name": "my",
"path": "/",
"sameSite": "None",
"secure": true,
"session": false,
"storeId": null,
"value": "YwA=",
"id": 1
},
{
"domain": ".dnevnik.ru",
"expirationDate": 1642285830.0,
"hostOnly": true,
"httpOnly": false,
"name": "_ym_d",
"path": "/",
"sameSite": "Unspecified",
"secure": true,
"session": false,
"storeId": null,
"value": "1610749831",
"id": 1
},
{
"domain": ".dnevnik.ru",
"expirationDate": 1642285830.0,
"hostOnly": true,
"httpOnly": false,
"name": "_ym_uid",
"path": "/",
"sameSite": "Unspecified",
"secure": true,
"session": false,
"storeId": null,
"value": "1610749831135764888",
"id": 1
},
{
"domain": ".dnevnik.ru",
"expirationDate": 1673821921.0,
"hostOnly": true,
"httpOnly": false,
"name": "_ga",
"path": "/",
"sameSite": "Unspecified",
"secure": false,
"session": false,
"storeId": null,
"value": "GA1.2.367580356.1610749831",
"id": 1
},
{
"domain": ".dnevnik.ru",
"expirationDate": -62135596800.0,
"hostOnly": true,
"httpOnly": true,
"name": "dnevnik_sst",
"path": "/",
"sameSite": "Unspecified",
"secure": false,
"session": true,
"storeId": null,
"value": "c83de58f-1f23-444a-a909-06a343fe60c1|0",
"id": 1
},
{
"domain": ".help.dnevnik.ru",
"expirationDate": 1613341920.0,
"hostOnly": true,
"httpOnly": true,
"name": "__cfduid",
"path": "/",
"sameSite": "Unspecified",
"secure": false,
"session": false,
"storeId": null,
"value": "dbdcf1d73b37f56bb8b5480caee57ad651610749920",
"id": 1
},
{
"domain": "help.dnevnik.ru",
"expirationDate": -62135596800.0,
"hostOnly": true,
"httpOnly": true,
"name": "_zendesk_shared_session",
"path": "/",
"sameSite": "Unspecified",
"secure": true,
"session": true,
"storeId": null,
"value": "-UityNVBCb0o4TXFxWHFqQXFpWXRDK1A5ZWdvMStYQ3FJVDVYUGtLY205OGt3OFlEQkM5UnBOc2RmYlp0M25ibzJ6c0ViM2xaejZsTTY3RUtqSWpuVkFUR0d0VnR2NTNrdWdxY1I0TVJIclVGbFc4RE5wZzIxV3AzaHhjcnNaOGJweTlsd2hFUXRTRUlvSU9OMDdlN2hnPT0tLWVsNUFkekpRSi9WOXNpYWpSdGxCdmc9PQ%3D%3D--6c6dbfe59d85f02071882e2eb801070ae289df97",
"id": 1
},
{
"domain": "help.dnevnik.ru",
"expirationDate": -62135596800.0,
"hostOnly": true,
"httpOnly": true,
"name": "_zendesk_session",
"path": "/",
"sameSite": "Unspecified",
"secure": true,
"session": true,
"storeId": null,
"value": "BAh7CkkiD3Nlc3Npb25faWQGOgZFVEkiJTliNDk5OWNiOWIxNDUwNGRlNmQ3YmRkMTQ1MjQwMzY3BjsAVEkiDGFjY291bnQGOwBGaQP7FAJJIgpyb3V0ZQY7AEZpA52xBEkiDmlzX21vYmlsZQY7AFRUSSITd2FyZGVuLm1lc3NhZ2UGOwBUewA%3D--4360c4acc27d40476cf91d1682c378ab292056c1",
"id": 1
},
{
"domain": ".help.dnevnik.ru",
"expirationDate": -62135596800.0,
"hostOnly": true,
"httpOnly": true,
"name": "__cfruid",
"path": "/",
"sameSite": "Unspecified",
"secure": true,
"session": true,
"storeId": null,
"value": "ee55717d93634661def12973bd3c29be7e5bcdb5-1610749920",
"id": 1
},
{
"domain": ".dnevnik.zendesk.com",
"expirationDate": -62135596800.0,
"hostOnly": true,
"httpOnly": true,
"name": "__cfruid",
"path": "/",
"sameSite": "Unspecified",
"secure": true,
"session": true,
"storeId": null,
"value": "4d32183e11ed8ac5d177a7b11307a9d04170ff5d-1610749921",
"id": 1
},
{
"domain": "help.dnevnik.ru",
"expirationDate": -62135596800.0,
"hostOnly": true,
"httpOnly": true,
"name": "_help_center_session",
"path": "/",
"sameSite": "Unspecified",
"secure": true,
"session": true,
"storeId": null,
"value": "dzUzT0hHMkNNU3hid1A2ODR2cFhRVGI4MStBVGIreTBHZXdKWXQvRGZQUE5INXFlMmlXVXVxNHIweGJxRkNpSm81cUk5ODRNbUs5Y2ZVRjkzUnBtOWoyTGc4RlZKOWJOU0c4VXdndVR4eHN3dldIOFlqUUZ0M0ttT2FLUFVMUlotLXFWNjBpeTJjZjYxUEFxTW9VN21mOXc9PQ%3D%3D--e92df61e20f9cd7123c890a818a091c4d359716d",
"id": 1
},
{
"domain": "zen-mobile-site.mediascope.mc.yandex.ru",
"expirationDate": -62135596800.0,
"hostOnly": true,
"httpOnly": false,
"name": "yabs-sid",
"path": "/",
"sameSite": "Unspecified",
"secure": true,
"session": true,
"storeId": null,
"value": "628131361610750002",
"id": 1
},
{
"domain": ".strm.yandex.net",
"expirationDate": 1926110004.0,
"hostOnly": true,
"httpOnly": false,
"name": "strm",
"path": "/",
"sameSite": "Unspecified",
"secure": true,
"session": false,
"storeId": null,
"value": "1620508828202212768",
"id": 1
},
{
"domain": ".yandex.ru",
"expirationDate": -62135596800.0,
"hostOnly": true,
"httpOnly": false,
"name": "ys",
"path": "/",
"sameSite": "Unspecified",
"secure": true,
"session": true,
"storeId": null,
"value": "wprid.1610750106543626-1297454400944009504615190-prestable-report-sas-web-yp-46",
"id": 1
},
{
"domain": ".facebook.com",
"expirationDate": -62135596800.0,
"hostOnly": true,
"httpOnly": false,
"name": "m_pixel_ratio",
"path": "/",
"sameSite": "Unspecified",
"secure": true,
"session": true,
"storeId": null,
"value": "1",
"id": 1
},
{
"domain": ".yandex.ru",
"expirationDate": 1925085340.0,
"hostOnly": true,
"httpOnly": false,
"name": "yandexuid",
"path": "/",
"sameSite": "None",
"secure": true,
"session": false,
"storeId": null,
"value": "6058765801609725330",
"id": 1
},
{
"domain": ".yandex.ru",
"expirationDate": 1925085340.0,
"hostOnly": true,
"httpOnly": false,
"name": "yuidss",
"path": "/",
"sameSite": "None",
"secure": true,
"session": false,
"storeId": null,
"value": "6058765801609725330",
"id": 1
},
{
"domain": ".yandex.ru",
"expirationDate": 1672797328.0,
"hostOnly": true,
"httpOnly": false,
"name": "is_gdpr_b",
"path": "/",
"sameSite": "None",
"secure": true,
"session": false,
"storeId": null,
"value": "CIWobhD8FSgC",
"id": 1
},
{
"domain": ".yandex.ru",
"expirationDate": 1672797328.0,
"hostOnly": true,
"httpOnly": true,
"name": "i",
"path": "/",
"sameSite": "None",
"secure": true,
"session": false,
"storeId": null,
"value": "zqWw2fCnPxdKSIB2D/cCsXA5naoa8vsY6ZCtBcGEulRqEcwro25XnDoYUdg/hcfQzMOZXWMMTU3IMZuTRFxw5lBm3gE=",
"id": 1
},
{
"domain": "mc.yandex.ru",
"expirationDate": -62135596800.0,
"hostOnly": true,
"httpOnly": false,
"name": "yabs-sid",
"path": "/",
"sameSite": "None",
"secure": true,
"session": true,
"storeId": null,
"value": "2274582511609725342",
"id": 1
},
{
"domain": ".yandex.ru",
"expirationDate": 1641261340.0,
"hostOnly": true,
"httpOnly": false,
"name": "ymex",
"path": "/",
"sameSite": "None",
"secure": true,
"session": false,
"storeId": null,
"value": "1925085342.yrts.1609725342",
"id": 1
},
{
"domain": ".yandex.ru",
"expirationDate": 1641261594.0,
"hostOnly": true,
"httpOnly": false,
"name": "_ym_uid",
"path": "/",
"sameSite": "None",
"secure": true,
"session": false,
"storeId": null,
"value": "1609725340356109907",
"id": 1
},
{
"domain": ".admetrica.ru",
"expirationDate": 2000000000.0,
"hostOnly": true,
"httpOnly": false,
"name": "yandexuid",
"path": "/",
"sameSite": "None",
"secure": true,
"session": false,
"storeId": null,
"value": "6058765801609725330",
"id": 1
},
{
"domain": ".admetrica.ru",
"expirationDate": 2000000000.0,
"hostOnly": true,
"httpOnly": false,
"name": "yuidss",
"path": "/",
"sameSite": "None",
"secure": true,
"session": false,
"storeId": null,
"value": "6058765801609725330",
"id": 1
},
{
"domain": ".mc.yandex.ru",
"expirationDate": 1672797340.0,
"hostOnly": true,
"httpOnly": false,
"name": "usst",
"path": "/",
"sameSite": "None",
"secure": true,
"session": false,
"storeId": null,
"value": "EAAAAAAAAADwAQo_OCgJkcxIIMjY4Mjg3MTA,",
"id": 1
},
{
"domain": ".yandex.ru",
"expirationDate": 2000000000.0,
"hostOnly": true,
"httpOnly": false,
"name": "yp",
"path": "/",
"sameSite": "Unspecified",
"secure": false,
"session": false,
"storeId": null,
"value": "1612317330.ygu.1#1625493344.szm.1:760x360:360x760#1625493376.sz.760x360x1",
"id": 1
},
{
"domain": ".yandex.ru",
"expirationDate": 1618365540.0,
"hostOnly": true,
"httpOnly": false,
"name": "yabs-frequency",
"path": "/",
"sameSite": "None",
"secure": true,
"session": false,
"storeId": null,
"value": "/5/00020000001cTl9V/9GPpS9G0003KFY3z-N9mb0000DG-834mGMs60000r3v1/",
"id": 1
},
{
"domain": ".yandex.ru",
"expirationDate": 1641261594.0,
"hostOnly": true,
"httpOnly": false,
"name": "_ym_d",
"path": "/",
"sameSite": "None",
"secure": true,
"session": false,
"storeId": null,
"value": "1609725594",
"id": 1
},
{
"domain": ".facebook.com",
"expirationDate": 1672797659.0,
"hostOnly": true,
"httpOnly": true,
"name": "datr",
"path": "/",
"sameSite": "None",
"secure": true,
"session": false,
"storeId": null,
"value": "3HbyXy4s7pKSEe1rWSId_BtX",
"id": 1
},
{
"domain": ".facebook.com",
"expirationDate": 1672797659.0,
"hostOnly": true,
"httpOnly": true,
"name": "sb",
"path": "/",
"sameSite": "None",
"secure": true,
"session": false,
"storeId": null,
"value": "3HbyX9WDIioScTb9upxB-AM9",
"id": 1
},
{
"domain": ".doubleclick.net",
"expirationDate": 1672797670.0,
"hostOnly": true,
"httpOnly": true,
"name": "IDE",
"path": "/",
"sameSite": "None",
"secure": true,
"session": false,
"storeId": null,
"value": "AHWqTUkX1NZKgTwNCCX3YpmtfSskzXOOS8pqhM5TvyjtkNUvcskBG8zpiGJKz2Uo",
"id": 1
},
{
"domain": ".facebook.com",
"expirationDate": 1617501699.0,
"hostOnly": true,
"httpOnly": true,
"name": "fr",
"path": "/",
"sameSite": "None",
"secure": true,
"session": false,
"storeId": null,
"value": "1OSpWbpJinL3OHrZU..Bf8nbc.bR.AAA.0.0.Bf8ncG.AWVvdVdHs4M",
"id": 1
}
]


Нужно что бы это было в одну строчку, как сделать подскажите пожалуйста?
 
Последнее редактирование модератором:

backoff

Client
Регистрация
20.04.2015
Сообщения
6 095
Благодарностей
6 496
Баллы
113

Alexmd

Client
Регистрация
10.12.2018
Сообщения
1 021
Благодарностей
1 423
Баллы
113
Соединяется по разделителю строк. Какой там у Вас - только Вам известно. Попробуйте \n или \r\n.
C#:
string str = project.Variables["text"].Value;// тут подставите свою переменную
return string.Join("", str.Split('\n')).Replace(" ", "");
 
  • Спасибо
Реакции: Roman48 и andropovleva

Roman48

Client
Регистрация
28.02.2016
Сообщения
2 058
Благодарностей
746
Баллы
113

andropovleva

Client
Регистрация
23.11.2019
Сообщения
580
Благодарностей
45
Баллы
28

Roman48

Client
Регистрация
28.02.2016
Сообщения
2 058
Благодарностей
746
Баллы
113
Так
1613304920198.png

C#:
[{"domain": ".yandex.ru","expirationDate": 1620093328.0,"hostOnly": true,"httpOnly": false,"name": "mda","path": "/","sameSite": "Unspecified","secure": false,"session": false,"storeId": null,"value": "0","id": 1},{"domain": ".yandex.ru","expirationDate": 1672797328.0,"hostOnly": true,"httpOnly": false,"name": "is_gdpr","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "0","id": 1},{"domain": ".yandex.ru","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": false,"name": "gdpr","path": "/","sameSite": "None","secure": true,"session": true,"storeId": null,"value": "0","id": 1},{"domain": ".yandex.ru","expirationDate": 1925085374.0,"hostOnly": true,"httpOnly": false,"name": "my","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "YwA=","id": 1},{"domain": ".dnevnik.ru","expirationDate": 1642285830.0,"hostOnly": true,"httpOnly": false,"name": "_ym_d","path": "/","sameSite": "Unspecified","secure": true,"session": false,"storeId": null,"value": "1610749831","id": 1},{"domain": ".dnevnik.ru","expirationDate": 1642285830.0,"hostOnly": true,"httpOnly": false,"name": "_ym_uid","path": "/","sameSite": "Unspecified","secure": true,"session": false,"storeId": null,"value": "1610749831135764888","id": 1},{"domain": ".dnevnik.ru","expirationDate": 1673821921.0,"hostOnly": true,"httpOnly": false,"name": "_ga","path": "/","sameSite": "Unspecified","secure": false,"session": false,"storeId": null,"value": "GA1.2.367580356.1610749831","id": 1},{"domain": ".dnevnik.ru","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": true,"name": "dnevnik_sst","path": "/","sameSite": "Unspecified","secure": false,"session": true,"storeId": null,"value": "c83de58f-1f23-444a-a909-06a343fe60c1|0","id": 1},{"domain": ".help.dnevnik.ru","expirationDate": 1613341920.0,"hostOnly": true,"httpOnly": true,"name": "__cfduid","path": "/","sameSite": "Unspecified","secure": false,"session": false,"storeId": null,"value": "dbdcf1d73b37f56bb8b5480caee57ad651610749920","id": 1},{"domain": "help.dnevnik.ru","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": true,"name": "_zendesk_shared_session","path": "/","sameSite": "Unspecified","secure": true,"session": true,"storeId": null,"value": "-UityNVBCb0o4TXFxWHFqQXFpWXRDK1A5ZWdvMStYQ3FJVDVYUGtLY205OGt3OFlEQkM5UnBOc2RmYlp0M25ibzJ6c0ViM2xaejZsTTY3RUtqSWpuVkFUR0d0VnR2NTNrdWdxY1I0TVJIclVGbFc4RE5wZzIxV3AzaHhjcnNaOGJweTlsd2hFUXRTRUlvSU9OMDdlN2hnPT0tLWVsNUFkekpRSi9WOXNpYWpSdGxCdmc9PQ%3D%3D--6c6dbfe59d85f02071882e2eb801070ae289df97","id": 1},{"domain": "help.dnevnik.ru","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": true,"name": "_zendesk_session","path": "/","sameSite": "Unspecified","secure": true,"session": true,"storeId": null,"value": "BAh7CkkiD3Nlc3Npb25faWQGOgZFVEkiJTliNDk5OWNiOWIxNDUwNGRlNmQ3YmRkMTQ1MjQwMzY3BjsAVEkiDGFjY291bnQGOwBGaQP7FAJJIgpyb3V0ZQY7AEZpA52xBEkiDmlzX21vYmlsZQY7AFRUSSITd2FyZGVuLm1lc3NhZ2UGOwBUewA%3D--4360c4acc27d40476cf91d1682c378ab292056c1","id": 1},{"domain": ".help.dnevnik.ru","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": true,"name": "__cfruid","path": "/","sameSite": "Unspecified","secure": true,"session": true,"storeId": null,"value": "ee55717d93634661def12973bd3c29be7e5bcdb5-1610749920","id": 1},{"domain": ".dnevnik.zendesk.com","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": true,"name": "__cfruid","path": "/","sameSite": "Unspecified","secure": true,"session": true,"storeId": null,"value": "4d32183e11ed8ac5d177a7b11307a9d04170ff5d-1610749921","id": 1},{"domain": "help.dnevnik.ru","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": true,"name": "_help_center_session","path": "/","sameSite": "Unspecified","secure": true,"session": true,"storeId": null,"value": "dzUzT0hHMkNNU3hid1A2ODR2cFhRVGI4MStBVGIreTBHZXdKWXQvRGZQUE5INXFlMmlXVXVxNHIweGJxRkNpSm81cUk5ODRNbUs5Y2ZVRjkzUnBtOWoyTGc4RlZKOWJOU0c4VXdndVR4eHN3dldIOFlqUUZ0M0ttT2FLUFVMUlotLXFWNjBpeTJjZjYxUEFxTW9VN21mOXc9PQ%3D%3D--e92df61e20f9cd7123c890a818a091c4d359716d","id": 1},{"domain": "zen-mobile-site.mediascope.mc.yandex.ru","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": false,"name": "yabs-sid","path": "/","sameSite": "Unspecified","secure": true,"session": true,"storeId": null,"value": "628131361610750002","id": 1},{"domain": ".strm.yandex.net","expirationDate": 1926110004.0,"hostOnly": true,"httpOnly": false,"name": "strm","path": "/","sameSite": "Unspecified","secure": true,"session": false,"storeId": null,"value": "1620508828202212768","id": 1},{"domain": ".yandex.ru","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": false,"name": "ys","path": "/","sameSite": "Unspecified","secure": true,"session": true,"storeId": null,"value": "wprid.1610750106543626-1297454400944009504615190-prestable-report-sas-web-yp-46","id": 1},{"domain": ".facebook.com","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": false,"name": "m_pixel_ratio","path": "/","sameSite": "Unspecified","secure": true,"session": true,"storeId": null,"value": "1","id": 1},{"domain": ".yandex.ru","expirationDate": 1925085340.0,"hostOnly": true,"httpOnly": false,"name": "yandexuid","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "6058765801609725330","id": 1},{"domain": ".yandex.ru","expirationDate": 1925085340.0,"hostOnly": true,"httpOnly": false,"name": "yuidss","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "6058765801609725330","id": 1},{"domain": ".yandex.ru","expirationDate": 1672797328.0,"hostOnly": true,"httpOnly": false,"name": "is_gdpr_b","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "CIWobhD8FSgC","id": 1},{"domain": ".yandex.ru","expirationDate": 1672797328.0,"hostOnly": true,"httpOnly": true,"name": "i","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "zqWw2fCnPxdKSIB2D/cCsXA5naoa8vsY6ZCtBcGEulRqEcwro25XnDoYUdg/hcfQzMOZXWMMTU3IMZuTRFxw5lBm3gE=","id": 1},{"domain": "mc.yandex.ru","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": false,"name": "yabs-sid","path": "/","sameSite": "None","secure": true,"session": true,"storeId": null,"value": "2274582511609725342","id": 1},{"domain": ".yandex.ru","expirationDate": 1641261340.0,"hostOnly": true,"httpOnly": false,"name": "ymex","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "1925085342.yrts.1609725342","id": 1},{"domain": ".yandex.ru","expirationDate": 1641261594.0,"hostOnly": true,"httpOnly": false,"name": "_ym_uid","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "1609725340356109907","id": 1},{"domain": ".admetrica.ru","expirationDate": 2000000000.0,"hostOnly": true,"httpOnly": false,"name": "yandexuid","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "6058765801609725330","id": 1},{"domain": ".admetrica.ru","expirationDate": 2000000000.0,"hostOnly": true,"httpOnly": false,"name": "yuidss","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "6058765801609725330","id": 1},{"domain": ".mc.yandex.ru","expirationDate": 1672797340.0,"hostOnly": true,"httpOnly": false,"name": "usst","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "EAAAAAAAAADwAQo_OCgJkcxIIMjY4Mjg3MTA,","id": 1},{"domain": ".yandex.ru","expirationDate": 2000000000.0,"hostOnly": true,"httpOnly": false,"name": "yp","path": "/","sameSite": "Unspecified","secure": false,"session": false,"storeId": null,"value": "1612317330.ygu.1#1625493344.szm.1:760x360:360x760#1625493376.sz.760x360x1","id": 1},{"domain": ".yandex.ru","expirationDate": 1618365540.0,"hostOnly": true,"httpOnly": false,"name": "yabs-frequency","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "/5/00020000001cTl9V/9GPpS9G0003KFY3z-N9mb0000DG-834mGMs60000r3v1/","id": 1},{"domain": ".yandex.ru","expirationDate": 1641261594.0,"hostOnly": true,"httpOnly": false,"name": "_ym_d","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "1609725594","id": 1},{"domain": ".facebook.com","expirationDate": 1672797659.0,"hostOnly": true,"httpOnly": true,"name": "datr","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "3HbyXy4s7pKSEe1rWSId_BtX","id": 1},{"domain": ".facebook.com","expirationDate": 1672797659.0,"hostOnly": true,"httpOnly": true,"name": "sb","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "3HbyX9WDIioScTb9upxB-AM9","id": 1},{"domain": ".doubleclick.net","expirationDate": 1672797670.0,"hostOnly": true,"httpOnly": true,"name": "IDE","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "AHWqTUkX1NZKgTwNCCX3YpmtfSskzXOOS8pqhM5TvyjtkNUvcskBG8zpiGJKz2Uo","id": 1},{"domain": ".facebook.com","expirationDate": 1617501699.0,"hostOnly": true,"httpOnly": true,"name": "fr","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "1OSpWbpJinL3OHrZU..Bf8nbc.bR.AAA.0.0.Bf8ncG.AWVvdVdHs4M","id": 1}]
 
  • Спасибо
Реакции: andropovleva

Ruhas

Client
Регистрация
26.11.2019
Сообщения
675
Благодарностей
171
Баллы
43
Так
Посмотреть вложение 72289

C#:
[{"domain": ".yandex.ru","expirationDate": 1620093328.0,"hostOnly": true,"httpOnly": false,"name": "mda","path": "/","sameSite": "Unspecified","secure": false,"session": false,"storeId": null,"value": "0","id": 1},{"domain": ".yandex.ru","expirationDate": 1672797328.0,"hostOnly": true,"httpOnly": false,"name": "is_gdpr","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "0","id": 1},{"domain": ".yandex.ru","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": false,"name": "gdpr","path": "/","sameSite": "None","secure": true,"session": true,"storeId": null,"value": "0","id": 1},{"domain": ".yandex.ru","expirationDate": 1925085374.0,"hostOnly": true,"httpOnly": false,"name": "my","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "YwA=","id": 1},{"domain": ".dnevnik.ru","expirationDate": 1642285830.0,"hostOnly": true,"httpOnly": false,"name": "_ym_d","path": "/","sameSite": "Unspecified","secure": true,"session": false,"storeId": null,"value": "1610749831","id": 1},{"domain": ".dnevnik.ru","expirationDate": 1642285830.0,"hostOnly": true,"httpOnly": false,"name": "_ym_uid","path": "/","sameSite": "Unspecified","secure": true,"session": false,"storeId": null,"value": "1610749831135764888","id": 1},{"domain": ".dnevnik.ru","expirationDate": 1673821921.0,"hostOnly": true,"httpOnly": false,"name": "_ga","path": "/","sameSite": "Unspecified","secure": false,"session": false,"storeId": null,"value": "GA1.2.367580356.1610749831","id": 1},{"domain": ".dnevnik.ru","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": true,"name": "dnevnik_sst","path": "/","sameSite": "Unspecified","secure": false,"session": true,"storeId": null,"value": "c83de58f-1f23-444a-a909-06a343fe60c1|0","id": 1},{"domain": ".help.dnevnik.ru","expirationDate": 1613341920.0,"hostOnly": true,"httpOnly": true,"name": "__cfduid","path": "/","sameSite": "Unspecified","secure": false,"session": false,"storeId": null,"value": "dbdcf1d73b37f56bb8b5480caee57ad651610749920","id": 1},{"domain": "help.dnevnik.ru","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": true,"name": "_zendesk_shared_session","path": "/","sameSite": "Unspecified","secure": true,"session": true,"storeId": null,"value": "-UityNVBCb0o4TXFxWHFqQXFpWXRDK1A5ZWdvMStYQ3FJVDVYUGtLY205OGt3OFlEQkM5UnBOc2RmYlp0M25ibzJ6c0ViM2xaejZsTTY3RUtqSWpuVkFUR0d0VnR2NTNrdWdxY1I0TVJIclVGbFc4RE5wZzIxV3AzaHhjcnNaOGJweTlsd2hFUXRTRUlvSU9OMDdlN2hnPT0tLWVsNUFkekpRSi9WOXNpYWpSdGxCdmc9PQ%3D%3D--6c6dbfe59d85f02071882e2eb801070ae289df97","id": 1},{"domain": "help.dnevnik.ru","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": true,"name": "_zendesk_session","path": "/","sameSite": "Unspecified","secure": true,"session": true,"storeId": null,"value": "BAh7CkkiD3Nlc3Npb25faWQGOgZFVEkiJTliNDk5OWNiOWIxNDUwNGRlNmQ3YmRkMTQ1MjQwMzY3BjsAVEkiDGFjY291bnQGOwBGaQP7FAJJIgpyb3V0ZQY7AEZpA52xBEkiDmlzX21vYmlsZQY7AFRUSSITd2FyZGVuLm1lc3NhZ2UGOwBUewA%3D--4360c4acc27d40476cf91d1682c378ab292056c1","id": 1},{"domain": ".help.dnevnik.ru","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": true,"name": "__cfruid","path": "/","sameSite": "Unspecified","secure": true,"session": true,"storeId": null,"value": "ee55717d93634661def12973bd3c29be7e5bcdb5-1610749920","id": 1},{"domain": ".dnevnik.zendesk.com","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": true,"name": "__cfruid","path": "/","sameSite": "Unspecified","secure": true,"session": true,"storeId": null,"value": "4d32183e11ed8ac5d177a7b11307a9d04170ff5d-1610749921","id": 1},{"domain": "help.dnevnik.ru","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": true,"name": "_help_center_session","path": "/","sameSite": "Unspecified","secure": true,"session": true,"storeId": null,"value": "dzUzT0hHMkNNU3hid1A2ODR2cFhRVGI4MStBVGIreTBHZXdKWXQvRGZQUE5INXFlMmlXVXVxNHIweGJxRkNpSm81cUk5ODRNbUs5Y2ZVRjkzUnBtOWoyTGc4RlZKOWJOU0c4VXdndVR4eHN3dldIOFlqUUZ0M0ttT2FLUFVMUlotLXFWNjBpeTJjZjYxUEFxTW9VN21mOXc9PQ%3D%3D--e92df61e20f9cd7123c890a818a091c4d359716d","id": 1},{"domain": "zen-mobile-site.mediascope.mc.yandex.ru","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": false,"name": "yabs-sid","path": "/","sameSite": "Unspecified","secure": true,"session": true,"storeId": null,"value": "628131361610750002","id": 1},{"domain": ".strm.yandex.net","expirationDate": 1926110004.0,"hostOnly": true,"httpOnly": false,"name": "strm","path": "/","sameSite": "Unspecified","secure": true,"session": false,"storeId": null,"value": "1620508828202212768","id": 1},{"domain": ".yandex.ru","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": false,"name": "ys","path": "/","sameSite": "Unspecified","secure": true,"session": true,"storeId": null,"value": "wprid.1610750106543626-1297454400944009504615190-prestable-report-sas-web-yp-46","id": 1},{"domain": ".facebook.com","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": false,"name": "m_pixel_ratio","path": "/","sameSite": "Unspecified","secure": true,"session": true,"storeId": null,"value": "1","id": 1},{"domain": ".yandex.ru","expirationDate": 1925085340.0,"hostOnly": true,"httpOnly": false,"name": "yandexuid","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "6058765801609725330","id": 1},{"domain": ".yandex.ru","expirationDate": 1925085340.0,"hostOnly": true,"httpOnly": false,"name": "yuidss","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "6058765801609725330","id": 1},{"domain": ".yandex.ru","expirationDate": 1672797328.0,"hostOnly": true,"httpOnly": false,"name": "is_gdpr_b","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "CIWobhD8FSgC","id": 1},{"domain": ".yandex.ru","expirationDate": 1672797328.0,"hostOnly": true,"httpOnly": true,"name": "i","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "zqWw2fCnPxdKSIB2D/cCsXA5naoa8vsY6ZCtBcGEulRqEcwro25XnDoYUdg/hcfQzMOZXWMMTU3IMZuTRFxw5lBm3gE=","id": 1},{"domain": "mc.yandex.ru","expirationDate": -62135596800.0,"hostOnly": true,"httpOnly": false,"name": "yabs-sid","path": "/","sameSite": "None","secure": true,"session": true,"storeId": null,"value": "2274582511609725342","id": 1},{"domain": ".yandex.ru","expirationDate": 1641261340.0,"hostOnly": true,"httpOnly": false,"name": "ymex","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "1925085342.yrts.1609725342","id": 1},{"domain": ".yandex.ru","expirationDate": 1641261594.0,"hostOnly": true,"httpOnly": false,"name": "_ym_uid","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "1609725340356109907","id": 1},{"domain": ".admetrica.ru","expirationDate": 2000000000.0,"hostOnly": true,"httpOnly": false,"name": "yandexuid","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "6058765801609725330","id": 1},{"domain": ".admetrica.ru","expirationDate": 2000000000.0,"hostOnly": true,"httpOnly": false,"name": "yuidss","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "6058765801609725330","id": 1},{"domain": ".mc.yandex.ru","expirationDate": 1672797340.0,"hostOnly": true,"httpOnly": false,"name": "usst","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "EAAAAAAAAADwAQo_OCgJkcxIIMjY4Mjg3MTA,","id": 1},{"domain": ".yandex.ru","expirationDate": 2000000000.0,"hostOnly": true,"httpOnly": false,"name": "yp","path": "/","sameSite": "Unspecified","secure": false,"session": false,"storeId": null,"value": "1612317330.ygu.1#1625493344.szm.1:760x360:360x760#1625493376.sz.760x360x1","id": 1},{"domain": ".yandex.ru","expirationDate": 1618365540.0,"hostOnly": true,"httpOnly": false,"name": "yabs-frequency","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "/5/00020000001cTl9V/9GPpS9G0003KFY3z-N9mb0000DG-834mGMs60000r3v1/","id": 1},{"domain": ".yandex.ru","expirationDate": 1641261594.0,"hostOnly": true,"httpOnly": false,"name": "_ym_d","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "1609725594","id": 1},{"domain": ".facebook.com","expirationDate": 1672797659.0,"hostOnly": true,"httpOnly": true,"name": "datr","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "3HbyXy4s7pKSEe1rWSId_BtX","id": 1},{"domain": ".facebook.com","expirationDate": 1672797659.0,"hostOnly": true,"httpOnly": true,"name": "sb","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "3HbyX9WDIioScTb9upxB-AM9","id": 1},{"domain": ".doubleclick.net","expirationDate": 1672797670.0,"hostOnly": true,"httpOnly": true,"name": "IDE","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "AHWqTUkX1NZKgTwNCCX3YpmtfSskzXOOS8pqhM5TvyjtkNUvcskBG8zpiGJKz2Uo","id": 1},{"domain": ".facebook.com","expirationDate": 1617501699.0,"hostOnly": true,"httpOnly": true,"name": "fr","path": "/","sameSite": "None","secure": true,"session": false,"storeId": null,"value": "1OSpWbpJinL3OHrZU..Bf8nbc.bR.AAA.0.0.Bf8ncG.AWVvdVdHs4M","id": 1}]
Ну я вот твой варинат тоже чет не понимаю как сделать, а тот что выше если делаю, то куки не рабочие получаются. Можешь подробно описать как сделать что бы они в строчку были а не столбиком?
 

Ruhas

Client
Регистрация
26.11.2019
Сообщения
675
Благодарностей
171
Баллы
43
Может кто подскажет как еще можно сделать? Желательно разжевать, я просто только учусь. Спасибо.
 

Brabus_bots

Client
Регистрация
13.04.2019
Сообщения
800
Благодарностей
547
Баллы
93
Можешь ТС имел ввиду перевод из нэтскейпа в джесон, сам того пока не зная? Если же реально нужно просто удалить отступы, то замена /r/n (советы выше) должны помочь
 

Ruhas

Client
Регистрация
26.11.2019
Сообщения
675
Благодарностей
171
Баллы
43
Можешь ТС имел ввиду перевод из нэтскейпа в джесон, сам того пока не зная? Если же реально нужно просто удалить отступы, то замена /r/n (советы выше) должны помочь
Я делал так, да выравнивается, но когда я загружаю куки то пишет что не правильный формат, а если я беру те что в столбик то все нормально. Вот и написал тут.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)