title: Nested arrays are not supported
body: <p>The new Firebase database Firestore says </p>
  
  <blockquote>
    <p>Function DocumentReference.set() called with invalid data. Nested arrays are not supported.</p>
  </blockquote>
  
  <p>When trying to save the following object:</p>
  
  <pre><code>{
    "desc" : "Blala",
    "geojson" : {
      "features" : [ {
        "geometry" : {
          "coordinates" : [ 8.177433013916017, 48.27753810094064 ],
          "type" : "Point"
        },
        "type" : "Feature"
      } ],
      "type" : "FeatureCollection"
    },
    "location" : {
      "lat" : 48.27753810094064,
      "lng" : 8.177433013916017
    },
    "name" : "Wald und Wiesen",
    "owner" : "8a2QQeTG2zRawZJA3tr1oyOAOSF3",
    "prices" : {
      "game" : {
        "Damwild" : 10,
        "Raubwild" : 300,
        "Rehwild" : 250,
        "Schwarzwild" : 40
      },
      "perDay" : 35
    },
    "rules" : "Keine Regeln!",
    "wild" : {
      "desc" : "kein Wild",
      "tags" : [ "Damwild", "Rehwild", "Schwarzwild", "Raubwild" ]
    }
  }
  </code></pre>
  
  <p>what exactly is the nested array that firestore is complaining about? I can't find it in the documentation.</p>
  
  <p>If it's the GeoJSON object - how would I save it instead?</p>