Search for specific parts of strings containing specific letters / characters, and then link to these parts

I am currently storing data as jsons (rows) in a database. Since jsons contain quotes, although the database I use cannot store quotes in this form: "it converts all quotes (like this:") to"

Unity won't let me deserialize json, as it now looks something like this:

{"coins":0,"level":0,"kills":0,"deaths":0,"xp":0.0}

instead of this:

{"coins":0,"level":0,"kills":0,"deaths":0,"xp":0.0}

Obviously, a possible solution to this would be to find all parts of my json string containing ", keeping a reference to these parts, and then converting all these parts to simple "

Therefore, I would like to ask you how I will deal with this.

+4
2

String.replace(""","\"") String.split, , , , JSON, , mongodb. : ""?

+2

, , Hacks!! .

, - . , , . MSDN ,

+1
source

Source: https://habr.com/ru/post/1677113/


All Articles