title: How to feed JSON data of coordinates to turf.polygon?
body: <p>How to feed JSON data of coordinates to turf.polygon?</p>
  
  <p><strong>Example:</strong> turf.polygon();
  </p>
  
  <pre><code>var polygon = turf.polygon([[
   [-2.275543, 53.464547],
   [-2.275543, 53.489271],
   [-2.215118, 53.489271],
   [-2.215118, 53.464547],
   [-2.275543, 53.464547]
  ]], { name: 'poly1', population: 400});
  </code></pre>
  
  <p><strong>Example:</strong> JSON form 
  </p>
  
  <pre><code>var json = 
  {
      "type": "geojson",
      "data": 
          {
           "type": "FeatureCollection",
           "features": [{
                 "type": "Feature",
                 "geometry": {
                     "type": "Polygon",
                     "coordinates": [[
                           [1.275543, 54.464547], // I want to feed these coordinates
                           [1.275543, 54.489271],
                           [1.215118, 54.489271],
                           [1.215118, 54.464547],
                           [1.275543, 54.464547]  
                      ]]
                  }
              }]
         }
   }
  </code></pre>
  
  
  
  <p><strong>My pseudo code:</strong> that doesn't work and returns an error message of <code>"LinearRing of a Polygon must have 4 or more Positions."</code>
  </p>
  
  <pre><code>var polygon = turf.polygon([[ json.data.features[0].geometry.coordinates ]], { name: 'poly1', population: 400});
  </code></pre>
  
  
  
  <p>Thank you.</p>