title: Check if a number exists in an entire JSON file using Firebase
body: <p>I imported a CSV file as a JSON file to my firebase database, the database contains a list of vehicle plate numbers and some other irrelevant information, what I want to do is to check if a car number exists, and if it is, set a flag to true.</p>
  
  <p>The database looks something like this, the number I want to check is the first value of them: <a href="https://i.stack.imgur.com/LKCxE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LKCxE.png" alt="JSON"></a></p>
  
  <p>In my code, I pretty much got stuck at this stage of the function:</p>
  
  <pre><code>
      number = 4932564 //example number
      Boolean carExists = false;
      dbref = FirebaseDatabase.getInstance().getReference("rechev-6c");
  
      //here I want to scroll through all the childs and check of a the number exists
  
      }
  </code></pre>
  
  <p>That's because I don't know what child to pick, I need somehow to loop through every child there is to "rechev-6c" databse and then check if any of its keys contains the vehicle number I want, and if it is, set the flag to true.</p>
  
  <p>Thanks for any sort of help.</p>