M
M
Mors Clamor2017-08-10 23:48:47
JSON
Mors Clamor, 2017-08-10 23:48:47

How to parse double quotes in JSON?

Hello! I am using the JSON.Net library on VB.NET. View file parsing problem

{
"a":"просто текст",
"b":"текст с "кавычками""
}

If you remove the problematic part, everything works flawlessly, how to decide who is familiar with this issue, the library? I've tried using a backslash, but it doesn't help.
Thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stalker_RED, 2017-08-11
@Stalker_RED

This is not a valid json, it will almost never work anywhere.

{
"a":"просто текст",
"b":"текст с \"кавычками\""
}
So try.

Z
Zakharov Alexander, 2017-08-11
@AlexZaharow

If all key/value pairs are scattered across the lines, then with regular expressions, between the third and last quote, replace all quotes with \" or ' (to your taste)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question