0
// start connection and send HTTP header and body
int httpCode = http.POST("{\"hello\":\"world\"}");
0
// start connection and send HTTP header and body
int httpCode = http.POST("{\"hello\":\"world\"}");
4
These inverted bars serve to escape the next character, ie it will be understood literally as ", and not as closure of string.
Without these bars, the content within their function would be a string invalid.
I understand perfectly! Thank you ;)
Browser other questions tagged c json
You are not signed in. Login or sign up in order to post.
I think you should study "what is the function of the backslash?" and escape characters.
– anonimo
This answers your question? What exactly is the backslash ( ) for in Python?
– Allan Ramos
Specifically about JSON: The delimiter of a string in
JSONalways is". As your string already uses"in the code, you need to use\"to escape the string that goes inside the quotes.– Wallace Maxters