I have the below json as a text, how can i assign this text into a string? Since this has got multiple inverted commas in it. Escasping each comma becomes a tedious job. I need to assign the text to string json="";
and pass a player pref string in unity. For a later purpose , so that i can later on write the string by using System.IO.File.WriteAllText(Application.persistentDataPath + "/stickers.json", json);
{
"android_play_store_link": "adityaspt",
"ios_app_store_link": "",
"sticker_packs": [
{
"identifier": "1",
"name": "Adi",
"publisher": "Jane Doe",
"tray_image_file": "Trayicon_Cat1.png",
"image_data_version":"1",
"avoid_cache":false,
"publisher_email":"",
"publisher_website": "",
"privacy_policy_website": "",
"license_agreement_website": "",
"stickers": [
{
"image_file": "Formidable.webp",
"emojis": ["☕",""]
},
{
"image_file": "Awful.webp",
"emojis": ["",""]
},
{
"image_file": "Athletic.webp",
"emojis": ["☕",""]
}
]
}
]
}