We're archiving the forums and going read only! You'll be able to see old threads, but new topics and replies have been disabled.

Visit the Game Jolt community for new questions and conversations.


Hello!
To save character I send to "data-store" JSON:
{"player":"NAME","class":"Novice","lvl":1,"cur_exp":0,"all_exp":0,"energy":200,"registr_timestamp":1649107550001,"old_timestamp":0,"new_timestamp":0,"str":1,"dex":1,"int":1,"end":1,"luck":1,"crit_p":150,"gold":1000000}

When I request this data, I get JSON:
{"response":{"success":"true","data":"{\"player\":\"NAME\",\"class\":\"Novice\",\"lvl\":1,\"cur_exp\":0,\"all_exp\":0,\"energy\":200,\"registr_timestamp\":1649107550001,\"old_timestamp\":0,\"new_timestamp\":0,\"str\":1,\"dex\":1,\"int\":1,\"end\":1,\"luck\":1,\"crit_p\":150,\"gold\":1000000}username=MaUserName"}}

Because of the extra "\" symbols, I can't parse the JSON I need.

How to get rid of these symbols?

============================== solved


over 3 years ago
opera__2022-04-14_224237_jsonformattercuriousconceptcom.png
over 3 years ago
In response to %{ user }@maksymplus93

In construct 3, plugins working with JSON do not understand "escaping characters".

I solved situation by put JSON into a variable, after that "escaping characters" disappeared.

(but there is always a big chance that I don't have enough experience)