[issue43807] JSONDecodeError: Extra Data Raised on Long Valid JSON

2021-04-16 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
nosy: +ezio.melotti, rhettinger

___
Python tracker 

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



[issue43807] JSONDecodeError: Extra Data Raised on Long Valid JSON

2021-04-11 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

There is a block of NUL bytes at the end of the JSON data structure

The output of "od -c pico-hard.json" ends with:

0046340s   e   c   t   i   o   n   N   o   t   e   s   "   :   [   ]
0046360,   "   t   y   p   e   O   f   S   e   c   t   i   o   n   "
0046400:   0   }   ]   }  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
0046420   \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
*
0071600   \0  \0  \0  \0  \0  \0  \0  \0  \0
0071611


Note that there is a block of "\0" entries after the closing "}". 

The file can be parsed correctly after stripping these NUL bytes.

--
nosy: +ronaldoussoren

___
Python tracker 

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



[issue43807] JSONDecodeError: Extra Data Raised on Long Valid JSON

2021-04-11 Thread Unknown Retired Guy


New submission from Unknown Retired Guy :

https://i.ibb.co/tYqBsQ8/pico-hard.png

That JSONDecodeError: Extra Data is raised when the Valid JSON is too long or 
over than 25000 bytes, I don't know what caused this, can you fix it?

The code and the traceback is in that picture/link above in this comment and 
the long valid JSON is provided here.

The Below picture/link proof that it's a valid JSON:
https://i.ibb.co/fGytRFC/946.png

--
components: Library (Lib)
files: pico-hard.json
messages: 390781
nosy: filipetaleshipolitosoares73
priority: normal
severity: normal
status: open
title: JSONDecodeError: Extra Data Raised on Long Valid JSON
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file49953/pico-hard.json

___
Python tracker 

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