title: Counting arrays insinde array in Json
body: <p>I'm getting this JSON file. The path arrays can be from 1 to 100,</p>
  
  <pre><code>{
  "waypoints": [
      {
          "path0": [
              {
                  "color": "#0000FF"
              },
              {
                  "lat": "37.9875000",
                  "lon": "23.7609260"
              },
              {
                  "lat": "37.9873130",
                  "lon": "23.7607460"
              },
              {
                  "lat": "37.9873840",
                  "lon": "23.7604100"
              }
          ],
          "path1": [
              {
                  "color": "#00FF00"
              },
              {
                  "lat": "37.9873840",
                  "lon": "23.7604100"
              },
              {
                  "lat": "37.9878040",
                  "lon": "23.7605670"
              },
              {
                  "lat": "37.9882590",
                  "lon": "23.7607340"
              }
          ],
          "path2": [
              {
                  "color": "#FF0000"
              },
              {
                  "lat": "37.9882590",
                  "lon": "23.7607340"
              },
              {
                  "lat": "37.9884690",
                  "lon": "23.7598760"
              }
          ]
      }
  ]
  }
  </code></pre>
  
  <p>How can i see how many path(path0, path1, ..) arrays do i have inside <code>waypoints</code> in Javascript?
  Using <code>obj.waypoints.length</code> returns 0.</p>
  
  <p>Thank you.</p>