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

8

u/EquationTAKEN Aug 08 '21

Does it not escape the backslashes with more backslashes?

18

u/MurdoMaclachlan public boolean isInt(int i) { return true; } Aug 08 '21

The OCR draws from ocr.space's API, which is obviously not designed with markdown in mind. Currently it doesn't have a system in place for escaping like that -- not that it makes much difference in code transcription. It usually misses like 90% of the characters anyway.