I need to transform JSON char in JSON char 2 with code. The difference between them is simple. JSON 2 has a \ before every ".
char json[] =
{"cartao":"222222222222","processo":"a22222","password":"password2","state":"deslogado"};
char json2[] =
"{\"cartao\":\"222222222222\",\"processo\":\"a22222\",\"password\":\"password2\",\"state\":\"deslogado\"};
;
Maybe have a look at the parse example in Serial Input Basics
...R
i cant understand it im newbie. Can somoeone help me with a more explicit hint?
Then study it... As the title says, it's pretty basic. If you're unable to understand it then the project is just over your head still... Don't try to run before you can walk.
I didn't see anything about Serial in your request.
Please clarify, are you looking to merely edit the string such that it replaces the quotes with escaped quotes (as in your example)?
Okay i discovered the problem. Thank you for the help.