<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: &amp;quot;Help with Parsing JSON String into Python List – Getting NoneType Error&amp;quot; in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-help-with-parsing-json-string-into-python-list-getting/m-p/8620#M3617</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-01-30 130225.png" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1771i745D59DFF92B74DD/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-01-30 130225.png" alt="Screenshot 2025-01-30 130225.png" /&gt;&lt;/span&gt;&amp;nbsp;still getting same error&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-01-30 130256.png" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1770iB71C718992C33112/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-01-30 130256.png" alt="Screenshot 2025-01-30 130256.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2025 07:34:43 GMT</pubDate>
    <dc:creator>Patel0786</dc:creator>
    <dc:date>2025-01-30T07:34:43Z</dc:date>
    <item>
      <title>"Help with Parsing JSON String into Python List – Getting NoneType Error"</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-help-with-parsing-json-string-into-python-list-getting/m-p/8578#M3587</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;I'm working with JSON data in Python, and I need help with converting a string representation of a JSON array into a Python list. Specifically, I'm trying to parse the following input:&lt;/P&gt;&lt;P&gt;'[{"name": "Alice", "age": 30}, {"name": "Bob", "age": 25}]'&lt;/P&gt;&lt;P&gt;&amp;nbsp;and expected output -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[{'name': 'Alice', 'age': 30}, {'name': 'Bob', 'age': 25}]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I run this, I get the error: "TypeError: the JSON object must be str, bytes or bytearray, not NoneType". What could be causing this, and how can I fix it?&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-01-28 130124.png" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1760iC58A05791C5DCB70/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-01-28 130124.png" alt="Screenshot 2025-01-28 130124.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-01-28 130141.png" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1761i1149EC14CD5D6909/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-01-28 130141.png" alt="Screenshot 2025-01-28 130141.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-01-28 130153.png" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1759i95469C96F0A5B328/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-01-28 130153.png" alt="Screenshot 2025-01-28 130153.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 07:33:54 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-help-with-parsing-json-string-into-python-list-getting/m-p/8578#M3587</guid>
      <dc:creator>Patel0786</dc:creator>
      <dc:date>2025-01-28T07:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: "Help with Parsing JSON String into Python List – Getting NoneType Error"</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-help-with-parsing-json-string-into-python-list-getting/m-p/8581#M3588</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/11127"&gt;@Patel0786&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Python interprets this as a list of dictionaries because single quotes are valid for dictionary keys/values in Python.&lt;/P&gt;&lt;P&gt;This behavior is Python's native way of understanding data formats, and Workato's Python component doesn't add any special handling.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Best Practices:&lt;/STRONG&gt;&lt;BR /&gt;1. Use double quotes for JSON keys and values when handling string representations of JSON.&lt;BR /&gt;2. Use &lt;STRONG&gt;json.dumps()&lt;/STRONG&gt; to serialize your Python objects into valid JSON strings when needed.&lt;BR /&gt;3. Test your input in a Python interpreter to confirm how it’s parsed before using it in Workato.&lt;BR /&gt;&lt;BR /&gt;Here is the syntax you have to use ( Sample screenshot)&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sample code.PNG" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1763i393A86B10E2AEE8D/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Sample code.PNG" alt="Sample code.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;BR /&gt;Shivakumar K A&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 15:00:09 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-help-with-parsing-json-string-into-python-list-getting/m-p/8581#M3588</guid>
      <dc:creator>shivakumara</dc:creator>
      <dc:date>2025-01-28T15:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: "Help with Parsing JSON String into Python List – Getting NoneType Error"</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-help-with-parsing-json-string-into-python-list-getting/m-p/8620#M3617</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-01-30 130225.png" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1771i745D59DFF92B74DD/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-01-30 130225.png" alt="Screenshot 2025-01-30 130225.png" /&gt;&lt;/span&gt;&amp;nbsp;still getting same error&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-01-30 130256.png" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1770iB71C718992C33112/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-01-30 130256.png" alt="Screenshot 2025-01-30 130256.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 07:34:43 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-help-with-parsing-json-string-into-python-list-getting/m-p/8620#M3617</guid>
      <dc:creator>Patel0786</dc:creator>
      <dc:date>2025-01-30T07:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: "Help with Parsing JSON String into Python List – Getting NoneType Error"</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-help-with-parsing-json-string-into-python-list-getting/m-p/8628#M3620</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/11127"&gt;@Patel0786&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;In the 4th line please pass the output of 3rd line ( i.e. string_data). Please try and let me know.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Shivakumara K&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 12:03:38 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/quot-help-with-parsing-json-string-into-python-list-getting/m-p/8628#M3620</guid>
      <dc:creator>shivakumara</dc:creator>
      <dc:date>2025-01-30T12:03:38Z</dc:date>
    </item>
  </channel>
</rss>

