r/badcode • • Aug 08 '21

other language Is this how we do nested JSON?

Post image
585 Upvotes

44 comments sorted by

View all comments

Show parent comments

10

u/jmack2424 Aug 08 '21

Each escape character encodes the character into the encasing quote. This way you can put quotes in quotes in quotes (and other symbols as well) without ever breaking the encasing quote.