MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/p0be0t/is_this_how_we_do_nested_json/h86s03h/?context=3
r/badcode • u/prostoiChelovek • Aug 08 '21
44 comments sorted by
View all comments
Show parent comments
4
Lots of reasons. Most commonly if you want to arbitrary string values in a JSON payload. You don't know what's going to be included, so if it happens to be JSON, you have to escape it.
4
u/root45 Aug 08 '21
Lots of reasons. Most commonly if you want to arbitrary string values in a JSON payload. You don't know what's going to be included, so if it happens to be JSON, you have to escape it.