[issue37944] About json.load(s

2019-08-25 Thread Origami Tobiichi


Change by Origami Tobiichi :


--
components: Extension Modules
nosy: Origami Tobiichi
priority: normal
severity: normal
status: open
title: About json.load(s
type: behavior
versions: Python 3.7

___
Python tracker 
<https://bugs.python.org/issue37944>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, string `{"foo": "\\\""}` will be parsed as 
`{"foo":"\""}`

I'm not a specialist of JSON at all. If the standard of JSON hasn't said 
anything of it, please point it out in Python's Document at least.

When I ask my friend to run the code, he got the same result as me. And my 
friend is using lastest Arch Linux at that time(2019/08/26).

My python version: 3.7.4
System version: Linux 4.19.66-1-MANJARO

--
nosy:  -xtreak
title: About json.load(s -> Adjacent escape character in json.load()

___
Python tracker 
<https://bugs.python.org/issue37944>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
<https://bugs.python.org/issue37944>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
<https://bugs.python.org/issue37944>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com