[issue37944] Adjacent escape character in json.load()

2019-08-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is no a bug. "\\\"" is the same as r"\\" -- a 2-charackter string consisting of a backslash character and a doublequote character. r"\\\"" is a different string, it contains 3 backslash characters. >>> print("\\\"") \" >>> print(repr("\\\"")) '\\"'

[issue37944] Adjacent escape character in json.load()

2019-08-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue37944] Adjacent escape character in json.load()

2019-08-25 Thread Origami Tobiichi
Origami Tobiichi added the comment: I'm sorry that I remove you from list, actually it's my first time to commit an issue on there and I'm afraid I used it wrong. -- nosy: +xtreak ___ Python tracker ___

[issue37944] Adjacent escape character in json.load()

2019-08-25 Thread Origami Tobiichi
Origami Tobiichi added the comment: I hope I have given enough infomations. And I'm not good at English, please forgive some of my spell wrong, thanks. -- ___ Python tracker

[issue37944] Adjacent escape character in json.load()

2019-08-25 Thread Origami Tobiichi
Origami Tobiichi added the comment: I tried something like this: ```python print(r'{"foo": "\\\""}') print('{"foo": "\\\""}') print(json.loads(r'{"foo":"\\\""}')) ``` On my machine it output like this: ``` {"foo": "\\\""} {"foo": "\""} {'foo': '\\"'} ``` But in most of online json parser, str