locked
The syntax of adding a double quotation RRS feed

  • Question

  • User1316246260 posted

    What is the syntax of adding a double quotation.

    I tried:

    jsonf = jsonf + "{"""first""":"""1"""}";

    Is there something of this form:

    jsonf = jsonf + "{" + chr(xxx) + "first" + chr(xxx) + ":" + chr(xxx) + "1" + chr(xxx) + "}";

    Wednesday, April 5, 2017 3:49 PM

Answers

  • User2103319870 posted

    You can try with the below option

    string jsonf = jsonf + "{" + "\""+ "first" + "\""+ ":" + "\""+ "1" + "\"" + "}";

    Outputs jsonf{"first":"1"}

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, April 5, 2017 5:04 PM