{"id":101424,"date":"2021-04-12T11:00:00","date_gmt":"2021-04-12T08:00:00","guid":{"rendered":"https:\/\/examples.javacodegeeks.com\/?p=101424"},"modified":"2022-02-24T11:50:14","modified_gmt":"2022-02-24T09:50:14","slug":"python-json-example","status":"publish","type":"post","link":"https:\/\/examples.javacodegeeks.com\/python-json-example\/","title":{"rendered":"Python JSON Example"},"content":{"rendered":"<p>Hello in this tutorial, we will understand how to parse, read, and write JSON in python programming.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-1-introduction\">1. Introduction<\/h2>\n<p><strong>JSON<\/strong> stands for <em>Javascript Object Notation<\/em> and is a popular format to represent structured data. It is the most popular exchange of data format between the application running on the server and the client. In python, JSON exists as a string such as &#8211;<\/p>\n<pre class=\"wp-block-preformatted brush:python;\">person_data = '{\"id\":1,\"first_name\":\"Marci\",\"last_name\":\"Larmet\",\"email\":\"mlarmet0@topsy.com\",\"gender\":\"Genderfluid\"}'\n<\/pre>\n<p>In python programming, we import the inbuilt <code>json<\/code> module to work with. This module makes it easy to parse the JSON strings and files containing the JSON data.<\/p>\n<h3 class=\"wp-block-heading\" id=\"h-1-2-setting-up-python\">1.2 Setting up Python<\/h3>\n<p>If someone needs to go through the Python installation on Windows, please watch <a href=\"https:\/\/www.youtube.com\/watch?v=i-MuSAwgwCU\" target=\"_blank\" rel=\"noopener\">this<\/a> link. You can download the Python from <a href=\"https:\/\/www.python.org\/downloads\/\" target=\"_blank\" rel=\"noopener\">this<\/a> link.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-2-python-json-example\">2. Python JSON Example<\/h2>\n<p>I am using <a href=\"https:\/\/www.jetbrains.com\/pycharm\/\" target=\"_blank\" rel=\"noopener\">JetBrains PyCharm<\/a> as my preferred IDE. You are free to choose the IDE of your choice. Let us dive in with the programming stuff now.<\/p>\n<h3 class=\"wp-block-heading\" id=\"h-2-1-python-dict-to-json-string\">2.1 Python dict to JSON string<\/h3>\n<p>Let us understand this in python programming. We will use:<\/p>\n<ul class=\"wp-block-list\">\n<li>The <code>json.dumps(\u2026)<\/code> method to convert the JSON data to a string<\/li>\n<li>The pretty-print to print the data in a readable format by adding the optional <code>indent<\/code> parameter to the <code>json.dumps(\u2026)<\/code> method. By default the value of <code>indent<\/code> is <code>None<\/code><\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline;\"><em>Python dict to JSON string<\/em><\/span><\/p>\n<pre class=\"wp-block-preformatted brush:python;\"># python json tutorial\n\nimport json\n\nperson_dict = {\n    \"id\": 2,\n    \"first_name\": \"Ivett\",\n    \"last_name\": \"Oldall\",\n    \"email\": \"ioldall1@paypal.com\",\n    \"gender\": \"Male\",\n    \"phone\": \"860-554-1988\"\n}\n\n# converting to json string\n# printing json data in pretty print\ndata_json = json.dumps(person_dict, indent=2)\nprint(data_json)\n<\/pre>\n<p>If everything goes well the following output will be shown in the IDE console.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p><span style=\"text-decoration: underline;\"><em>Console output<\/em><\/span><\/p>\n<pre class=\"wp-block-preformatted brush:plain;\">{\n  \"id\": 2,\n  \"first_name\": \"Ivett\",\n  \"last_name\": \"Oldall\",\n  \"email\": \"ioldall1@paypal.com\",\n  \"gender\": \"Male\",\n  \"phone\": \"860-554-1988\"\n}\n<\/pre>\n<h3 class=\"wp-block-heading\" id=\"h-2-2-write-json-data-to-file\">2.2 Write JSON data to file<\/h3>\n<p>Let us understand this in python programming.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Write JSON data to file<\/em><\/span><\/p>\n<pre class=\"wp-block-preformatted brush:python;\"># python json tutorial\n\nimport json\n\n# file params\nfile_path = 'config'\nfile_name = 'emp.json'\n\ndata_dict = {\n    \"person\": [\n        {\"id\": 1, \"first_name\": \"Iorgos\", \"last_name\": \"McPaike\", \"email\": \"imcpaike0@issuu.com\",\n         \"gender\": \"Genderqueer\", \"phone\": \"584-868-2320\"},\n        {\"id\": 2, \"first_name\": \"Vinnie\", \"last_name\": \"De Gogay\", \"email\": \"vdegogay1@utexas.edu\",\n         \"gender\": \"Agender\", \"phone\": \"897-932-4821\"},\n        {\"id\": 3, \"first_name\": \"Marcille\", \"last_name\": \"Pitkaithly\", \"email\": \"mpitkaithly2@cbslocal.com\",\n         \"gender\": \"Genderqueer\", \"phone\": \"139-842-9277\"},\n        {\"id\": 4, \"first_name\": \"Bob\", \"last_name\": \"Woltering\", \"email\": \"bwoltering3@mediafire.com\",\n         \"gender\": \"Genderfluid\", \"phone\": \"593-291-4767\"},\n        {\"id\": 5, \"first_name\": \"Ginni\", \"last_name\": \"Circuit\", \"email\": \"gcircuit4@quantcast.com\",\n         \"gender\": \"Genderfluid\", \"phone\": \"704-200-9520\"}\n    ]\n}\n\n\ndef write_json(destination):\n    # if the file doesn't already exist, it will be created\n    with open(destination, 'w') as json_file:\n        json.dump(data_dict, json_file)\n\n    print('Successfully written to {}'.format(file_name))\n\n\nif __name__ == '__main__':\n    write_json(file_path + '\/' + file_name)\n<\/pre>\n<p>If everything goes well the following output will be shown in the IDE console and the file <code>emp.json<\/code> containing the JSON format data will be created at the given location.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Console output<\/em><\/span><\/p>\n<pre class=\"wp-block-preformatted brush:plain;\">Successfully written to emp.json\n<\/pre>\n<h3 class=\"wp-block-heading\" id=\"h-2-3-read-json-data-from-file\">2.3 Read JSON data from file<\/h3>\n<p>Let us understand this in python programming.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Read JSON data from file<\/em><\/span><\/p>\n<pre class=\"wp-block-preformatted brush:python;\"># python json tutorial\n\nimport json\nimport pathlib\n\n# file params\nfile_path = 'config'\nfile_name = 'data.json'\n\n\ndef read_json(destination):\n    # checking is file exists at the given destination or not\n    if pathlib.Path(destination).exists():\n        with open(destination, 'r') as f:\n            data = json.load(f)\n\n        if not data['person']:\n            print('No data!')\n        else:\n            print('Data from json file')\n            print('--------------------------')\n\n            # printing json data in pretty print\n            # print(json.dumps(data, indent=2))\n\n            for rows in data['person']:\n                full_name = rows['first_name'] + ' ' + rows['last_name']\n                print('Id = {}, Full name = {}, Email = {}, Gender = {}'.format(\n                    rows['id'], full_name, rows['email'], rows['gender']\n                ))\n    else:\n        print('File not exist!')\n\n\nif __name__ == '__main__':\n    read_json(file_path + '\/' + file_name)\n<\/pre>\n<p>If everything goes well the following output will be shown in the IDE console.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Console output<\/em><\/span><\/p>\n<pre class=\"wp-block-preformatted brush:plain;\">Data from json file\n--------------------------\nId = 1, Full name = Marci Larmet, Email = mlarmet0@topsy.com, Gender = Genderfluid\nId = 2, Full name = Nowell Malatalant, Email = nmalatalant1@eventbrite.com, Gender = Male\nId = 3, Full name = Napoleon Copo, Email = ncopo2@com.com, Gender = Bigender\nId = 4, Full name = Humfrey Romand, Email = hromand3@mail.ru, Gender = Male\nId = 5, Full name = Maynord Herculson, Email = mherculson4@etsy.com, Gender = Bigender\n<\/pre>\n<p>That is all for this tutorial and I hope the article served you with whatever you were looking for. Happy Learning and do not forget to share!<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-3-summary\">3. Summary<\/h2>\n<p>In this tutorial, we learned:<\/p>\n<ul class=\"wp-block-list\">\n<li>Introduction to JSON<\/li>\n<li>Sample program to understand the JSON implement in python<\/li>\n<\/ul>\n<p>You can download the source code of this tutorial from the <a href=\"#projectDownload\">Downloads<\/a> section.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-4-more-articles\"><a name=\"projectDownload\"><\/a>4. More articles<\/h2>\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/python-tutorial-for-beginners\/\">Python Tutorial for Beginners<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/python-random-module-tutorial\/\">Python Random Module Tutorial<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/python-input-method-tutorial\/\">Python input() method Tutorial<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/queue-in-python\/\">Queue in Python<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/python-regex-tutorial\/\">Python RegEx Tutorial<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/introduction-to-the-flask-python-web-app-framework\/\">Introduction to the Flask Python Web App Framework<\/a><\/li>\n<li><a href=\"https:\/\/examples.javacodegeeks.com\/selenium-with-python-example\/\">Selenium with Python Example<\/a><\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\" id=\"h-5-download-the-project\">5. Download the Project<\/h2>\n<p>This was a tutorial to understand the JSON implement in python.<\/p>\n<div class=\"download\"><strong>Download<\/strong><br \/>You can download the full source code of this example here: <strong><a href=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/03\/Python-JSON-Example.zip\">Python JSON Example<\/a><\/strong><\/div>\n<p><strong>Last updated on Feb. 24th, 2022<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello in this tutorial, we will understand how to parse, read, and write JSON in python programming. 1. Introduction JSON stands for Javascript Object Notation and is a popular format to represent structured data. It is the most popular exchange of data format between the application running on the server and the client. In python, &hellip;<\/p>\n","protected":false},"author":119,"featured_media":99891,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46689],"tags":[1029,1716],"class_list":["post-101424","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-json","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python JSON Example - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Hello in this tutorial, we will understand how to parse, read, and write JSON in python programming. 1. Introduction JSON stands for Javascript Object\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/examples.javacodegeeks.com\/python-json-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python JSON Example - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Hello in this tutorial, we will understand how to parse, read, and write JSON in python programming. 1. Introduction JSON stands for Javascript Object\" \/>\n<meta property=\"og:url\" content=\"https:\/\/examples.javacodegeeks.com\/python-json-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Examples Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-12T08:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-24T09:50:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Yatin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yatin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/python-json-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/python-json-example\/\"},\"author\":{\"name\":\"Yatin\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/9874407a37b028e8be3276e2b5960d13\"},\"headline\":\"Python JSON Example\",\"datePublished\":\"2021-04-12T08:00:00+00:00\",\"dateModified\":\"2022-02-24T09:50:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/python-json-example\/\"},\"wordCount\":424,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/python-json-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg\",\"keywords\":[\"json\",\"python\"],\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/python-json-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/python-json-example\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/python-json-example\/\",\"name\":\"Python JSON Example - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/python-json-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/python-json-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg\",\"datePublished\":\"2021-04-12T08:00:00+00:00\",\"dateModified\":\"2022-02-24T09:50:14+00:00\",\"description\":\"Hello in this tutorial, we will understand how to parse, read, and write JSON in python programming. 1. Introduction JSON stands for Javascript Object\",\"breadcrumb\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/python-json-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/examples.javacodegeeks.com\/python-json-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/python-json-example\/#primaryimage\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"set python\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/python-json-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/examples.javacodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Web Development\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/web-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Python\",\"item\":\"https:\/\/examples.javacodegeeks.com\/category\/web-development\/python\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Python JSON Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#website\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Examples and Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/examples.javacodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/javacodegeeks\",\"https:\/\/x.com\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/9874407a37b028e8be3276e2b5960d13\",\"name\":\"Yatin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/09\/cropped-Yatin-Batra_avatar_1515758148-96x96.jpg\",\"contentUrl\":\"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/09\/cropped-Yatin-Batra_avatar_1515758148-96x96.jpg\",\"caption\":\"Yatin\"},\"description\":\"An experience full-stack engineer well versed with Core Java, Spring\/Springboot, MVC, Security, AOP, Frontend (Angular &amp; React), and cloud technologies (such as AWS, GCP, Jenkins, Docker, K8).\",\"sameAs\":[\"https:\/\/www.javacodegeeks.com\"],\"url\":\"https:\/\/examples.javacodegeeks.com\/author\/yatin-batra\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python JSON Example - Java Code Geeks","description":"Hello in this tutorial, we will understand how to parse, read, and write JSON in python programming. 1. Introduction JSON stands for Javascript Object","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/examples.javacodegeeks.com\/python-json-example\/","og_locale":"en_US","og_type":"article","og_title":"Python JSON Example - Java Code Geeks","og_description":"Hello in this tutorial, we will understand how to parse, read, and write JSON in python programming. 1. Introduction JSON stands for Javascript Object","og_url":"https:\/\/examples.javacodegeeks.com\/python-json-example\/","og_site_name":"Examples Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2021-04-12T08:00:00+00:00","article_modified_time":"2022-02-24T09:50:14+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg","type":"image\/jpeg"}],"author":"Yatin","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Yatin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/examples.javacodegeeks.com\/python-json-example\/#article","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/python-json-example\/"},"author":{"name":"Yatin","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/9874407a37b028e8be3276e2b5960d13"},"headline":"Python JSON Example","datePublished":"2021-04-12T08:00:00+00:00","dateModified":"2022-02-24T09:50:14+00:00","mainEntityOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/python-json-example\/"},"wordCount":424,"commentCount":1,"publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/python-json-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg","keywords":["json","python"],"articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/examples.javacodegeeks.com\/python-json-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/examples.javacodegeeks.com\/python-json-example\/","url":"https:\/\/examples.javacodegeeks.com\/python-json-example\/","name":"Python JSON Example - Java Code Geeks","isPartOf":{"@id":"https:\/\/examples.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/examples.javacodegeeks.com\/python-json-example\/#primaryimage"},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/python-json-example\/#primaryimage"},"thumbnailUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg","datePublished":"2021-04-12T08:00:00+00:00","dateModified":"2022-02-24T09:50:14+00:00","description":"Hello in this tutorial, we will understand how to parse, read, and write JSON in python programming. 1. Introduction JSON stands for Javascript Object","breadcrumb":{"@id":"https:\/\/examples.javacodegeeks.com\/python-json-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/examples.javacodegeeks.com\/python-json-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/python-json-example\/#primaryimage","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2021\/02\/python-logo.jpg","width":150,"height":150,"caption":"set python"},{"@type":"BreadcrumbList","@id":"https:\/\/examples.javacodegeeks.com\/python-json-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/examples.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Web Development","item":"https:\/\/examples.javacodegeeks.com\/category\/web-development\/"},{"@type":"ListItem","position":3,"name":"Python","item":"https:\/\/examples.javacodegeeks.com\/category\/web-development\/python\/"},{"@type":"ListItem","position":4,"name":"Python JSON Example"}]},{"@type":"WebSite","@id":"https:\/\/examples.javacodegeeks.com\/#website","url":"https:\/\/examples.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Examples and Code Snippets","publisher":{"@id":"https:\/\/examples.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/examples.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/examples.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/examples.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/9874407a37b028e8be3276e2b5960d13","name":"Yatin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/examples.javacodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/09\/cropped-Yatin-Batra_avatar_1515758148-96x96.jpg","contentUrl":"https:\/\/examples.javacodegeeks.com\/wp-content\/uploads\/2023\/09\/cropped-Yatin-Batra_avatar_1515758148-96x96.jpg","caption":"Yatin"},"description":"An experience full-stack engineer well versed with Core Java, Spring\/Springboot, MVC, Security, AOP, Frontend (Angular &amp; React), and cloud technologies (such as AWS, GCP, Jenkins, Docker, K8).","sameAs":["https:\/\/www.javacodegeeks.com"],"url":"https:\/\/examples.javacodegeeks.com\/author\/yatin-batra\/"}]}},"_links":{"self":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/101424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/users\/119"}],"replies":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=101424"}],"version-history":[{"count":0,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/101424\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media\/99891"}],"wp:attachment":[{"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=101424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=101424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/examples.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=101424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}