<?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>question Avro object when converted to JSON is giving array instead of object in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Avro-object-when-converted-to-JSON-is-giving-array-instead/m-p/388472#M246680</link>
    <description>&lt;P&gt;I am trying to create a flow to convert a JSON object to Avro and then consume the produced data from Avro to JSON.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha2112goyal_0-1716954563874.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40800i30FC716F360F3734/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha2112goyal_0-1716954563874.png" alt="nisha2112goyal_0-1716954563874.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the sample data I am using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha2112goyal_1-1716954702143.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40801i2DBF3E55F7CE61CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha2112goyal_1-1716954702143.png" alt="nisha2112goyal_1-1716954702143.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I check the data that is finally consumed and converted back to JSON , It is coming as array instead of object :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[ {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"Vehicle" : "BigVehicle",&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"Fromuser" : "User1",&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"Timestamp" : "2024-03-19T13:00:00+0530"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;} ]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;convertRecord configuration for JSON toAvro conversion:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha2112goyal_2-1716954835993.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40802iA3672605C6D75F25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha2112goyal_2-1716954835993.png" alt="nisha2112goyal_2-1716954835993.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha2112goyal_3-1716954868220.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40803i59E51F3B4C784A88/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha2112goyal_3-1716954868220.png" alt="nisha2112goyal_3-1716954868220.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Convert Record from Avro to JSON:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha2112goyal_4-1716954910577.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40804iB0410D469FCD7461/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha2112goyal_4-1716954910577.png" alt="nisha2112goyal_4-1716954910577.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha2112goyal_5-1716954971171.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40805i1B5AD41F6CDD8320/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha2112goyal_5-1716954971171.png" alt="nisha2112goyal_5-1716954971171.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha2112goyal_6-1716955039455.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40806i9A5C2772E9C587B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha2112goyal_6-1716955039455.png" alt="nisha2112goyal_6-1716955039455.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2024 03:57:30 GMT</pubDate>
    <dc:creator>nisha2112goyal</dc:creator>
    <dc:date>2024-05-29T03:57:30Z</dc:date>
    <item>
      <title>Avro object when converted to JSON is giving array instead of object</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Avro-object-when-converted-to-JSON-is-giving-array-instead/m-p/388472#M246680</link>
      <description>&lt;P&gt;I am trying to create a flow to convert a JSON object to Avro and then consume the produced data from Avro to JSON.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha2112goyal_0-1716954563874.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40800i30FC716F360F3734/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha2112goyal_0-1716954563874.png" alt="nisha2112goyal_0-1716954563874.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the sample data I am using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha2112goyal_1-1716954702143.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40801i2DBF3E55F7CE61CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha2112goyal_1-1716954702143.png" alt="nisha2112goyal_1-1716954702143.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I check the data that is finally consumed and converted back to JSON , It is coming as array instead of object :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[ {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"Vehicle" : "BigVehicle",&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"Fromuser" : "User1",&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"Timestamp" : "2024-03-19T13:00:00+0530"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;} ]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;convertRecord configuration for JSON toAvro conversion:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha2112goyal_2-1716954835993.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40802iA3672605C6D75F25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha2112goyal_2-1716954835993.png" alt="nisha2112goyal_2-1716954835993.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha2112goyal_3-1716954868220.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40803i59E51F3B4C784A88/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha2112goyal_3-1716954868220.png" alt="nisha2112goyal_3-1716954868220.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Convert Record from Avro to JSON:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha2112goyal_4-1716954910577.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40804iB0410D469FCD7461/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha2112goyal_4-1716954910577.png" alt="nisha2112goyal_4-1716954910577.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha2112goyal_5-1716954971171.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40805i1B5AD41F6CDD8320/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha2112goyal_5-1716954971171.png" alt="nisha2112goyal_5-1716954971171.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nisha2112goyal_6-1716955039455.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/40806i9A5C2772E9C587B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nisha2112goyal_6-1716955039455.png" alt="nisha2112goyal_6-1716955039455.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 03:57:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Avro-object-when-converted-to-JSON-is-giving-array-instead/m-p/388472#M246680</guid>
      <dc:creator>nisha2112goyal</dc:creator>
      <dc:date>2024-05-29T03:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Avro object when converted to JSON is giving array instead of object</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Avro-object-when-converted-to-JSON-is-giving-array-instead/m-p/388481#M246684</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108868"&gt;@nisha2112goyal&lt;/a&gt;,&amp;nbsp;Welcome to our community! To help you get the best possible answer, I have tagged in our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 05:28:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Avro-object-when-converted-to-JSON-is-giving-array-instead/m-p/388481#M246684</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2024-05-29T05:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Avro object when converted to JSON is giving array instead of object</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Avro-object-when-converted-to-JSON-is-giving-array-instead/m-p/388664#M246735</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108868"&gt;@nisha2112goyal&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I will try and change the Output Grouping in the JsonREcordSertWRtiter&amp;nbsp; from Array to One Line Per Object and see if that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jun 2024 11:56:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Avro-object-when-converted-to-JSON-is-giving-array-instead/m-p/388664#M246735</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2024-06-01T11:56:23Z</dc:date>
    </item>
  </channel>
</rss>

