title: Error: 3 INVALID_ARGUMENT: Cannot convert an array value in an array value in Firestore admin
body: <p>I am trying to save multiple tweet objects retrieved using the twitter api in my firstore db, but I am getting this error:</p>
  <blockquote>
  <p>Error: 3 INVALID_ARGUMENT: Cannot convert an array value in an array value</p>
  </blockquote>
  <p>Below is the sample <code>JSON</code> object: all tweet objects are similar to this</p>
  <pre><code>TweetObj: {
    &quot;created_at&quot;: &quot;Wed Feb 12 15:17:24 +0000 2020&quot;,
    &quot;id&quot;: 1227612675334660000,
    &quot;id_str&quot;: &quot;1227612675334660099&quot;,
    &quot;full_text&quot;: &quot;Writing online is a superpower.\n\nHere’s a list of people who should start writing online.\n\n1. The Niche Hobbyist\n\nThe Internet rewards people with obscure interests. Writing online will help you find other like-minded hobbyists who you wouldn’t be able to find in real-life.&quot;,
    &quot;truncated&quot;: false,
    &quot;display_text_range&quot;: [
      0,
      274
    ],
    &quot;entities&quot;: {
      &quot;hashtags&quot;: [],
      &quot;symbols&quot;: [],
      &quot;user_mentions&quot;: [],
      &quot;urls&quot;: []
    },
    &quot;source&quot;: &quot;&lt;a href=\&quot;http://twitter.com/download/iphone\&quot; rel=\&quot;nofollow\&quot;&gt;Twitter for iPhone&lt;/a&gt;&quot;,
    &quot;in_reply_to_status_id&quot;: null,
    &quot;in_reply_to_status_id_str&quot;: null,
    &quot;in_reply_to_user_id&quot;: null,
    &quot;in_reply_to_user_id_str&quot;: null,
    &quot;in_reply_to_screen_name&quot;: null,
    &quot;user&quot;: {
      &quot;id&quot;: 240049622,
      &quot;id_str&quot;: &quot;240049622&quot;,
      &quot;name&quot;: &quot;David Perell&quot;,
      &quot;screen_name&quot;: &quot;david_perell&quot;,
      &quot;location&quot;: &quot;New York&quot;,
      &quot;description&quot;: &quot;\&quot;The Writing Guy\&quot; | I tweet about business, online learning, and Internet writing | My Podcast:  | My writing school: ,
      &quot;url&quot;: &quot;&quot;,
      &quot;entities&quot;: {
        &quot;url&quot;: {
          &quot;urls&quot;: [
            {
              &quot;url&quot;: ,
              &quot;expanded_url&quot;: &quot;http://www.perell.com/&quot;,
              &quot;display_url&quot;: &quot;perell.com&quot;,
              &quot;indices&quot;: [
                0,
                23
              ]
            }
          ]
        },
        &quot;description&quot;: {
          &quot;urls&quot;: [
            {
              &quot;url&quot;: &quot;&quot;,
              &quot;expanded_url&quot;: &quot;http://Perell.com/podcast&quot;,
              &quot;display_url&quot;: &quot;Perell.com/podcast&quot;,
              &quot;indices&quot;: [
                96,
                119
              ]
            },
            {
              &quot;url&quot;: &quot;&quot;,
              &quot;expanded_url&quot;: &quot;http://writeofpassage.school&quot;,
              &quot;display_url&quot;: &quot;writeofpassage.school&quot;,
              &quot;indices&quot;: [
                141,
                164
              ]
            }
          ]
        }
      },
      &quot;protected&quot;: false,
      &quot;followers_count&quot;: 89464,
      &quot;friends_count&quot;: 763,
      &quot;listed_count&quot;: 1539,
      &quot;created_at&quot;: &quot;Wed Jan 19 01:41:27 +0000 2011&quot;,
      &quot;favourites_count&quot;: 51075,
      &quot;utc_offset&quot;: null,
      &quot;time_zone&quot;: null,
      &quot;geo_enabled&quot;: true,
      &quot;verified&quot;: false,
      &quot;statuses_count&quot;: 21700,
      &quot;lang&quot;: null,
      &quot;contributors_enabled&quot;: false,
      &quot;is_translator&quot;: false,
      &quot;is_translation_enabled&quot;: false,
      &quot;profile_background_color&quot;: &quot;C0DEED&quot;,
      &quot;profile_background_image_url&quot;: &quot;http://abs.twimg.com/images/themes/theme1/bg.png&quot;,
      &quot;profile_background_image_url_https&quot;: &quot;https://abs.twimg.com/images/themes/theme1/bg.png&quot;,
      &quot;profile_background_tile&quot;: false,
      &quot;profile_image_url&quot;: &quot;http://pbs.twimg.com/profile_images/913816689892044800/rF7O3Bfz_normal.jpg&quot;,
      &quot;profile_image_url_https&quot;: &quot;https://pbs.twimg.com/profile_images/913816689892044800/rF7O3Bfz_normal.jpg&quot;,
      &quot;profile_banner_url&quot;: &quot;https://pbs.twimg.com/profile_banners/240049622/1543613054&quot;,
      &quot;profile_link_color&quot;: &quot;129CE6&quot;,
      &quot;profile_sidebar_border_color&quot;: &quot;C0DEED&quot;,
      &quot;profile_sidebar_fill_color&quot;: &quot;DDEEF6&quot;,
      &quot;profile_text_color&quot;: &quot;333333&quot;,
      &quot;profile_use_background_image&quot;: true,
      &quot;has_extended_profile&quot;: true,
      &quot;default_profile&quot;: false,
      &quot;default_profile_image&quot;: false,
      &quot;following&quot;: true,
      &quot;follow_request_sent&quot;: false,
      &quot;notifications&quot;: true,
      &quot;translator_type&quot;: &quot;none&quot;
    },
    &quot;geo&quot;: null,
    &quot;coordinates&quot;: null,
    &quot;place&quot;: {
      &quot;id&quot;: &quot;01a9a39529b27f36&quot;,
      &quot;url&quot;: &quot;https://api.twitter.com/1.1/geo/id/01a9a39529b27f36.json&quot;,
      &quot;place_type&quot;: &quot;city&quot;,
      &quot;name&quot;: &quot;Manhattan&quot;,
      &quot;full_name&quot;: &quot;Manhattan, NY&quot;,
      &quot;country_code&quot;: &quot;US&quot;,
      &quot;country&quot;: &quot;United States&quot;,
      &quot;contained_within&quot;: [],
      &quot;bounding_box&quot;: {
        &quot;type&quot;: &quot;Polygon&quot;,
        &quot;coordinates&quot;: [
          [
            [
              -74.026675,
              40.683935
            ],
            [
              -73.910408,
              40.683935
            ],
            [
              -73.910408,
              40.877483
            ],
            [
              -74.026675,
              40.877483
            ]
          ]
        ]
      },
      &quot;attributes&quot;: {}
    },
    &quot;contributors&quot;: null,
    &quot;is_quote_status&quot;: false,
    &quot;retweet_count&quot;: 357,
    &quot;favorite_count&quot;: 2145,
    &quot;favorited&quot;: false,
    &quot;retweeted&quot;: false,
    &quot;lang&quot;: &quot;en&quot;
  }
  </code></pre>
  <p>Above is the exact object that is giving the error
  In the above snippet, the argument threads is an <code>array</code> containing multiple tweet objects just like the one described earlier.</p>
  <p>Help would be very much appreciated.</p>