How to put " in a Json File that will be seen, between the "" from a String?

Hey. How can I write special charackters in an Json file? Or in general how can I show a whole code that will not be counted as a code?

Hi @faebuog Welcome to the community!

You just need to add a slash before it \“quote\”

the pair would look like

"quote" : "This is my \"Hello World\" statement."

Other reserved commands are:

Backspace is replaced with \b.
Form feed is replaced with \f.
Newline is replaced with \n.
Carriage return is replaced with \r.
Tab is replaced with \t.
Double quote is replaced with \"
Backslash is replaced with \\

Blessings,
—Mark

1 Like