@Rotyin

Как приобразовать str в json?

init({"title":"Wireframe Kits","subtitle":"Information Architecture Kit","product":{"_id":"53d8362940e80ac5038b4578","name":"Information Architecture Kit","description":"Need a simple way to show the basic features and flow in an app before you dive into an extensive wireframing phase? Our information architecture kit is exactly what you need to get started. Delivered in Illustrator and Sketch formats.","blurb":"A premium toolkit for all your UX projects","price":6800,"filesize":11000000,"slug":"information-architecture-kit","likes":412,"updated_at":"2019-01-06T03:44:52.082Z","card_image":"https://d1v8dk3ka6obgr.cloudfront.net/uploads/retina_1412015679724.png","video_embed":"","created_at":"2014-05-05T07:00:00.000Z","status":"active","full_preview_images":[{"url":"https://d1v8dk3ka6obgr.cloudfront.net/uploads/retina_1409786580788.png","_id":"5bf30b1856d57f0046083c46"},{"url":"https://d1v8dk3ka6obgr.cloudfront.net/uploads/retina_1409786580831.png","_id":"5bf30b1856d57f0046083c45"},{"url":"https://d1v8dk3ka6obgr.cloudfront.net/uploads/retina_1409786658420.png","_id":"5bf30b1856d57f0046083c44"}],"detail_images":[{"loop":false,"url":"https://d1v8dk3ka6obgr.cloudfront.net/uploads/retina_1412015682861.jpg","label":"","_id":"5bf30b1856d57f0046083c43"},{"loop":false,"url":"https://d1v8dk3ka6obgr.cloudfront.net/uploads/retina_1412015685345.jpg","label":"","_id":"5bf30b1856d57f0046083c42"},{"loop":false,"url":"https://d1v8dk3ka6obgr.cloudfront.net/uploads/retina_1412015687034.jpg","label":"","_id":"5bf30b1856d57f0046083c41"},{"loop":false,"url":"https://images.ui8.net/res/robot/image/upload/qkbqfovm4sgvqyofsq2v/1444335127.jpg","label":"","_id":"5bf30b1856d57f0046083c40"},{"loop":false,"url":"https://images.ui8.net/res/robot/image/upload/bhaa6gpyi0q0c6gxpu6f/1444335127.jpg","label":"","_id":"5bf30b1856d57f0046083c3f"},{"loop":false,"url":"https://images.ui8.net/res/robot/image/upload/xygr2jaixitshdyhjxxx/1444335127.jpg","label":"","_id":"5bf30b1856d57f0046083c3e"}],"hide_hero":false,"tags":[{"_id":"55c4ef26a73053a55af4c072","name":"sketch","slug":"sketch"},{"_id":"55c4ef45a73053a55af4c074","name":"illustrator","slug":"illustrator"},{"_id":"55c4ee82a73053a55af4c06a","name":"android","slug":"android"},{"_id":"55c4eec5a73053a55af4c06c","name":"iphone","slug":"iphone"}],"category":[{"_id":"53cc9bb46f8ba8f9fa66d313","name":"Wireframe Kits","slug":"wireframe-kits"}],"files":[{"name":"Information Architecture Kit","_id":"5bf30b1856d57f0046083c48","free":false},{"name":"Demo","_id":"5bf30b1856d57f0046083c47","free":true}],"bundle_items":[],"compatibility":["Sketch","Illustrator"],"show_nav":false,"freebie":false,"exclusive":true,"features":["250 Templates","500+ Elements","Vector based, fully scalable","Meticulously designed","Compatible with Adobe CS6+ & Sketch 3+",""],"type":"item","author":{"_id":"543edf703fbf6101242ebff0","display_name":"UI8","display_name_slug":"ui8","avatar_url":"https://images.ui8.net/res/robot/image/upload/thswb3xtl9t6xsr0yluk/1443685618.png","pro_author":false,"for_hire":true,"has_resized_avatar":true,"avatar_url_version":0},"hero_image":"","live_preview":"","discussion":{"_id":"5653954a8adee08349c1976d","locked":false,"total_comments":6},"is_subscription":false,"source_url":"","video_intro":"","video_source":"","on_sale":false,"has_scaled_images":false,"has_resized_card_image":true,"card_image_version":1,"compatibility_string":"sketch-compatible illustrator-compatible","free_files":[{"name":"Demo","_id":"5bf30b1856d57f0046083c47","free":true}],"paid_files":[{"name":"Information Architecture Kit","_id":"5bf30b1856d57f0046083c48","free":false}]},"products":[{"category":[{"_id":"5b96c2ad2e0f9d028a5003b9","name":"3D Assets","slug":"3d-assets"},{"_id":"53cc9bdd6f8ba8f9fa66d315","name":"Icons","slug":"icons"}],"has_scaled_images":false,"has_resized_card_image":true,"card_image_version":1,"_id":"61b0cc986e83ec003c05af05","name":"DeFicons vol. 2 - Crypto 3D Icon Set","slug":"deficons-vol-2-crypto-3d-icon-set","price":6800,"card_image":"https://images.ui8.net/uploads/thumbnail_1638976631554.png","files":[{"free":false,"_id":"61b0ce9ce6ab85003cc5df64","name":"DeFicons Vol. 2 - UI8.zip"}],"author":{"has_resized_avatar":true,"avatar_url_version":0,"_id":"543edf703fbf6101242ebff0","display_name":"UI8","display_name_slug":"ui8","avatar_url":"https://images.ui8.net/res/robot/image/upload/thswb3xtl9t6xsr0yluk/1443685618.png","pro_author":false},"on_sale":false,"seasonal_promo_price":null,"site_promo":false,"likes":84},{"category":[{"_id":"5b0e9e8e1149cd0035c03d30","name":"Illustrations","slug":"illustrations"}],"has_scaled_images":false,"has_resized_card_image":true,"card_image_version":1,"_id":"6192424ab4c0b8003c38cd16","name":"TINIES 3D","slug":"tinies-3d","price":3800,"files":[{"free":false,"_id":"6192646b6aa853003eb2eeb4","name":"TINIES Sketch Figma.zip"}],"card_image":"https://images.ui8.net/uploads/ui8-thumbnail_1636973334526.png","author":{"has_resized_avatar":true,"avatar_url_version":0,"_id":"543edf703fbf6101242ebff0","display_name":"UI8","display_name_slug":"ui8","avatar_url":"https://images.ui8.net/res/robot/image/upload/thswb3xtl9t6xsr0yluk/1443685618.png","pro_author":false},"on_sale":false,"seasonal_promo_price":null,"site_promo":false,"likes":90},{"category":[{"_id":"5fe06d627c035c00455007b0","name":"Coded Templates","slug":"coded-templates"},{"_id":"53cc9bc96f8ba8f9fa66d314","name":"UI Kits","slug":"ui-kits"}],"has_scaled_images":false,"has_resized_card_image":true,"card_image_version":2,"_id":"618d1562d72285003d0c280d","name":"Core – Dashboard Builder","slug":"core-dashboard-builder","price":9800,"card_image":"https://images.ui8.net/uploads/thumbnail_coded_1642515604710.png","files":[{"free":false,"_id":"61e7b2d1064489003c0eab9a","name":"Core-Dashboard Builder-design.zip"},{"free":false,"_id":"61e7b2d1064489003c0eab9b","name":"Core-Dashboard Builder-code.zip"}],"author":{"has_resized_avatar":true,"avatar_url_version":0,"_id":"543edf703fbf6101242ebff0","display_name":"UI8","display_name_slug":"ui8","avatar_url":"https://images.ui8.net/res/robot/image/upload/thswb3xtl9t6xsr0yluk/1443685618.png","pro_author":false},"on_sale":false,"seasonal_promo_price":null,"site_promo":false,"likes":338}],"previews":["full_preview_images","free_files"],"meta_description":"Need a simple way to show the basic features and flow in an app before you dive into an extensive wireframing phase? Our information architecture kit is exactly what you need to get started. Delivered in Illustrator and Sketch formats.","author":{"_id":"543edf703fbf6101242ebff0","display_name":"UI8","display_name_slug":"ui8","avatar_url":"https://images.ui8.net/res/robot/image/upload/thswb3xtl9t6xsr0yluk/1443685618.png","pro_author":false,"for_hire":true,"has_resized_avatar":true,"avatar_url_version":0},"admin":false,"loggedIn":false,"videoEmbed":null,"valid_pass":false,"user_owns":false}, undefined, false)

я получил такие данные с парсинга, как мне приобразовать в dict, эсли они в str?
  • Вопрос задан
  • 64 просмотра
Пригласить эксперта
Ответы на вопрос 1
@twistfire92
Python backend developer
модуль json.
Метод loads
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы
05 мая 2022, в 14:28
50000 руб./за проект
16 мая 2022, в 15:29
2000 руб./за проект
16 мая 2022, в 15:13
500 руб./за проект