Невозможно просмотреть файл JSON на jsonviewer.stack.huPython

Программы на Python
Ответить
Гость
 Невозможно просмотреть файл JSON на jsonviewer.stack.hu

Сообщение Гость »

Я пытался визуализировать этот json с помощью http://jsonviewer.stack.hu/ , но каждый раз, когда я нажимаю на вкладку просмотра, получаю сообщение об ошибке «Недопустимая переменная JSON».
вот настоящий json

Код: Выделить всё

{'source': {'id': 'reuters', 'name': 'Reuters'}, 'author': None, 'title': "CRYPTOVERSE-Bitcoin could be laid low by miners' malady - Reuters", 'description': "Bitcoin miners are feeling the heat - and the pain's rippling downstream to pressure prices.", 'url': 'https://www.reuters.com/markets/europe/cryptoverse-bitcoin-could-be-laid-low-by-miners-malady-2022-02-22/', 'urlToImage': 'https://www.reuters.com/resizer/9nBpgfg7pSfpPQXnDcfMde9l3v0=/1200x628/smart/filters:quality(80)/cloudfront-us-east-2.images.arcpublishing.com/reuters/OXI44UUFUBOOBJGVTYCNM4IIBI.jpg', 'publishedAt': '2022-02-22T06:17:00Z', 'content': "Feb 22 (Reuters) - Bitcoin miners are feeling the heat - and the pain's rippling downstream to pressure prices.\r\nThe cryptocurrency's spectacular rally in 2021 drew thousands of entrants into mining,… [+4196 chars]"}
Почему выдается ошибка, когда я получил данные с помощью request.get() и преобразовал их в json с помощью метода json()?
Спасибо за ваши добрые ответы!>

Подробнее здесь: https://stackoverflow.com/questions/712 ... r-stack-hu
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Python»