title: Usage of array filter in nested json object
body: <p>My aim is to reference to a specific view (A, B or C) inside a nested <code>json structure</code>.</p>
  
  <pre><code>this.selected_table = this.all_tables.views.find(x =&gt; x)['A'];
  </code></pre>
  
  <p>Is this the correct way to use the filter, because all examples I have found have some conditions inside the <code>array.find()</code>. In my case, it would work without conditions, but I have the feeling that the <code>array.find()</code> is unnecessary in my case? But, I couldn't find another way.    </p>
  
  <p><strong>JSON Object</strong></p>
  
  <pre><code>all_tables = {  
     "views":[  
        {  
           "A":[  
              {  
                 "id":"",
                 "username":"",
                 "status":"",
                 "location":"",
                 "positionen":[  
                    {  
                       "field1":"",
                       "field2":"",
                       "field3":""
                    },
                    {  
                       "field1":"",
                       "field2":"",
                       "field3":""
                    },
                    {  
                       "field1":"",
                       "field2":"",
                       "field3":""
                    }
                 ]
              },
              {  
                 "id":"",
                 "username":"",
                 "status":"",
                 "location":"",
                 "positionen":[  
                    {  
                       "field1":"",
                       "field2":"",
                       "field3":""
                    },
                    {  
                       "field1":"",
                       "field2":"",
                       "field3":""
                    },
                    {  
                       "field1":"",
                       "field2":"",
                       "field3":""
                    }
                 ]
              }
           ],
           "B":[  
              {  
                 "id":"",
                 "username":"",
                 "status":"",
                 "location":"",
                 "positionen":[  
                    {  
                       "field1":"",
                       "field2":"",
                       "field3":""
                    },
                    {  
                       "field1":"",
                       "field2":"",
                       "field3":""
                    },
                    {  
                       "field1":"",
                       "field2":"",
                       "field3":""
                    }
                 ]
              },
              {  
                 "id":"",
                 "username":"",
                 "status":"",
                 "location":"",
                 "positionen":[  
                    {  
                       "field1":"",
                       "field2":"",
                       "field3":""
                    },
                    {  
                       "field1":"",
                       "field2":"",
                       "field3":""
                    },
                    {  
                       "field1":"",
                       "field2":"",
                       "field3":""
                    }
                 ]
              }
           ],
           "C":[  
              {  
                 "id":"",
                 "username":"",
                 "status":"",
                 "location":"",
                 "positionen":[  
                    {  
                       "field1":"",
                       "field2":"",
                       "field3":""
                    },
                    {  
                       "field1":"",
                       "field2":"",
                       "field3":""
                    },
                    {  
                       "field1":"",
                       "field2":"",
                       "field3":""
                    }
                 ]
              },
              {  
                 "id":"",
                 "username":"",
                 "status":"",
                 "location":"",
                 "positionen":[  
                    {  
                       "field1":"",
                       "field2":"",
                       "field3":""
                    },
                    {  
                       "field1":"",
                       "field2":"",
                       "field3":""
                    },
                    {  
                       "field1":"",
                       "field2":"",
                       "field3":""
                    }
                 ]
              }
           ]
        }
     ]
  }
  </code></pre>