Hello,
another silly question from the beginner:
I want to create a JSON string to pass to javascript in a webapp.
So that would be the opposite of the json-parser here - I am not able to handle single and double quotes.
The json string had to be like: '[{"x":218,"y":209,"WPname_en":"turn right"},{"x":683,"y":216,"WPname_en":"go right"}]'
with each item enclosed in double quotes. I could not create such a string using stringbuilder, because we cannot use something like sb.Append(""") or sb.Append("\""). Even I tried: sb.Append("""), but the ascii code is not recognized by the javascript function JSON.parse(...)
Anybody has an idea ? I guess it must be trivial but i cannot figure it out now.
Thanks a million,
Chris