<?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: accessing json contents without a schema in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/accessing-json-contents-without-a-schema/m-p/10441#M4157</link>
    <description>&lt;P&gt;Hi &lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/10292"&gt;@rm135&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;After reviewing your issue, I’d recommend using a Python script step to extract the specific object from the response — particularly when the response schema is dynamic or frequently changing.&lt;/P&gt;&lt;P&gt;For instance, you can extract the array using, when it is structured json only:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;response.json()[&lt;SPAN class=""&gt;'value'&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Once you've extracted the required portion of the JSON (like the value array), you can pass the output of the Python script to a &lt;STRONG&gt;Parse JSON&lt;/STRONG&gt; step. From there, you’ll be able to map the fields easily to the &lt;STRONG&gt;Snowflake&lt;/STRONG&gt; step.&lt;/P&gt;&lt;P&gt;Using formulas to handle dynamic structures can become complex and error-prone. In such scenarios, a Python script provides better flexibility and control over dynamic JSON structures.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jul 2025 07:07:06 GMT</pubDate>
    <dc:creator>rajeshjanapati</dc:creator>
    <dc:date>2025-07-14T07:07:06Z</dc:date>
    <item>
      <title>accessing json contents without a schema</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/accessing-json-contents-without-a-schema/m-p/10373#M4126</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm retreiving sign in logs from MS graph via HTTP. The schema is complex and seems to change a lot so I've had issues trying to define a proper schema for data pills.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I would really just like to access one of the high level json objects and be able to use it as data I would save to a file or pass to a snowflake field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. in python I would just use&amp;nbsp;&lt;/P&gt;&lt;P&gt;response.json()['value']&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is this possible?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 01:59:28 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/accessing-json-contents-without-a-schema/m-p/10373#M4126</guid>
      <dc:creator>rm135</dc:creator>
      <dc:date>2025-07-08T01:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: accessing json contents without a schema</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/accessing-json-contents-without-a-schema/m-p/10375#M4127</link>
      <description>&lt;P&gt;Add the payload data pill to a logger or variable or wherever, set it to formula mode, and do response["value"]&lt;/P&gt;&lt;P&gt;If your "response" data pill looks like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "test1": "one",
  "test2": "two",
  "test3": [ 1, 2, 3 ],
  "test4": [ {"test5": "five"} ],
  "test6": { "test7": "seven" }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Then this follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;response["test1"] =&amp;gt; "one"&lt;/LI&gt;&lt;LI&gt;response["test3"][0] =&amp;gt; 1&lt;/LI&gt;&lt;LI&gt;response["test4"][0]["test5"] =&amp;gt; "five"&lt;/LI&gt;&lt;LI&gt;response["test6"]["test7"] =&amp;gt; "seven"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And so on...&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 03:45:09 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/accessing-json-contents-without-a-schema/m-p/10375#M4127</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2025-07-08T03:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: accessing json contents without a schema</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/accessing-json-contents-without-a-schema/m-p/10378#M4128</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/10292"&gt;@rm135&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you can&amp;nbsp; do that by keeping the &lt;STRONG&gt;response format as TEXT&lt;/STRONG&gt;&amp;nbsp;in your HTTP step. That way, you don't need to define any schema or worry about data pills.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot 2025-07-08 093125.png" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2195i4E030DE78BE5A825/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-07-08 093125.png" alt="Screenshot 2025-07-08 093125.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But since the response will be treated as a raw JSON string, you'll need to use a &lt;STRONG&gt;code step&lt;/STRONG&gt; (Ruby, Python, or JavaScript) to parse that string and extract the part you need&lt;BR /&gt;&lt;BR /&gt;Hope this helps! Let me know if I missed your question or if you need something different.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 04:03:17 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/accessing-json-contents-without-a-schema/m-p/10378#M4128</guid>
      <dc:creator>Bhagya_pola</dc:creator>
      <dc:date>2025-07-08T04:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: accessing json contents without a schema</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/accessing-json-contents-without-a-schema/m-p/10420#M4151</link>
      <description>&lt;P&gt;I would use the &lt;STRONG&gt;part of the schema that is stable&lt;/STRONG&gt;, Workato is pretty forgiving in terms of the Json &lt;span class="lia-unicode-emoji" title=":ok_hand:"&gt;👌&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;You can&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;pass a larger object (with more fields) than what was defined in the initial schema just fine.&lt;/LI&gt;&lt;LI&gt;Just make sure you define the parts/fields you need for your recipe in the schema, and just ignore anything that might be changing.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;By doing that you get the data pills for the fields that are set/standard across the logs. You can then run whatever logic you want with that.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You will not get data pills for the parts you took out of the schema (or anything new that shows up), &lt;STRONG&gt;which is fine&lt;/STRONG&gt; since you will be passing the log elsewhere. In case you only need to pass a part of the JSON - that can be done just like&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/1188"&gt;@gary1&lt;/a&gt;&amp;nbsp;suggested with formula mode to extract what you need and passing that through.&lt;/P&gt;&lt;P&gt;That said, I would avoid trying to manually parse the JSON as a text &lt;span class="lia-unicode-emoji" title=":no_entry:"&gt;⛔&lt;/span&gt; - you loose the benefits of the data pills and create tech debt. It also takes more time to setup and maintain. So, avoid these headaches and use the standard schema that you need (not the whole schema). Only pars/extract things if you have a specific requirement/need to pass part of the log.&lt;/P&gt;&lt;P&gt;Let me know how it goes.&lt;/P&gt;&lt;P&gt;Cheers!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jul 2025 02:34:56 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/accessing-json-contents-without-a-schema/m-p/10420#M4151</guid>
      <dc:creator>platovandre</dc:creator>
      <dc:date>2025-07-13T02:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: accessing json contents without a schema</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/accessing-json-contents-without-a-schema/m-p/10421#M4152</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/5462"&gt;@platovandre&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the input. That said, in scenarios where the schema is unstable or frequently changing, working with the raw JSON as text and handling it in a code step (Python/JS) is actually much more flexible — not really a headache if you're comfortable with basic scripting.&lt;/P&gt;&lt;P&gt;Also, regarding data pills — if needed, we can &lt;STRONG&gt;define a custom output schema in the code step’s output fields&lt;/STRONG&gt;, so pill generation can be fully controlled without relying on upstream schema stability.&lt;/P&gt;&lt;P&gt;This approach gives more control and avoids unnecessary complications when the structure isn’t consistent.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jul 2025 09:53:37 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/accessing-json-contents-without-a-schema/m-p/10421#M4152</guid>
      <dc:creator>Bhagya_pola</dc:creator>
      <dc:date>2025-07-13T09:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: accessing json contents without a schema</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/accessing-json-contents-without-a-schema/m-p/10441#M4157</link>
      <description>&lt;P&gt;Hi &lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/10292"&gt;@rm135&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;After reviewing your issue, I’d recommend using a Python script step to extract the specific object from the response — particularly when the response schema is dynamic or frequently changing.&lt;/P&gt;&lt;P&gt;For instance, you can extract the array using, when it is structured json only:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;response.json()[&lt;SPAN class=""&gt;'value'&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Once you've extracted the required portion of the JSON (like the value array), you can pass the output of the Python script to a &lt;STRONG&gt;Parse JSON&lt;/STRONG&gt; step. From there, you’ll be able to map the fields easily to the &lt;STRONG&gt;Snowflake&lt;/STRONG&gt; step.&lt;/P&gt;&lt;P&gt;Using formulas to handle dynamic structures can become complex and error-prone. In such scenarios, a Python script provides better flexibility and control over dynamic JSON structures.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 07:07:06 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/accessing-json-contents-without-a-schema/m-p/10441#M4157</guid>
      <dc:creator>rajeshjanapati</dc:creator>
      <dc:date>2025-07-14T07:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: accessing json contents without a schema</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/accessing-json-contents-without-a-schema/m-p/10598#M4209</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/10292"&gt;@rm135&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;In HTTP call at response you can define the output schema (it generate each field) . At next step you can use the datapills to map snowflake.&lt;BR /&gt;Second Approach - You can use Parse Json step . so it generated data pills&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 15:28:53 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/accessing-json-contents-without-a-schema/m-p/10598#M4209</guid>
      <dc:creator>Obugari</dc:creator>
      <dc:date>2025-08-04T15:28:53Z</dc:date>
    </item>
  </channel>
</rss>

