title: reading Play application configuration file containing nested objects
body: <p>I want to get list of email IDs based on provided fileType and companyName</p>
  
  <pre><code>def getEmailAddresses(fileType: String, companyName: String): List[String] = {
    val xz = Play.application.configuration.getConfigList("email_list")
    println(xz)
  }
  </code></pre>
  
  <p>my above function is giving me some complex List of Configuration which is not easily traversable.</p>
  
  <p>I basically want <code>List[String]</code> which is nothing but list of email IDs.</p>
  
  <p>For example, given arguments :</p>
  
  <ul>
  <li>fileType = test_2     </li>
  <li>companyName = company2</li>
  </ul>
  
  <p>I want to obtain String <code>"user1@gmail.com, user2@gmail.com"</code> 
  that can be converted to <code>List[String]</code> by <code>.split(",").toList</code></p>
  
  <p>can this be simplified?</p>
  
  <p>following is my application.conf file in scala play application</p>
  
  <pre><code>email_list = [
    {
      file0 : "user1@gmail.com,user2@gmail.com"
    },
    {
      file1 : [
        {"company1" : "user1@gmail.com"},
        {"company2" : "user1@gmail.com"},
        {"company3" : "user1@gmail.com"}
      ]
    },
    {
      top2 = [
        {"company1": "user1@gmail.com,user2@gmail.com"},
        {"company2": "user1@gmail.com,user2@gmail.com"},
        {"company3": "user1@gmail.com,user2@gmail.com"}
      ]
    },
    {
      test_2 = [
        {"company1": "user1@gmail.com,user2@gmail.com"},
        {"company2": "user1@gmail.com,user2@gmail.com"},
        {"company3": "user1@gmail.com,user2@gmail.com"}
      ]
    },
    {
      xyz_7 = [
        {"company1": "user1@gmail.com,user2@gmail.com"},
        {"company2": "user1@gmail.com,user2@gmail.com"},
        {"company3": "user1@gmail.com,user2@gmail.com"}
      ]
    },
    {
      abc_def = [
        {"company1": "user1@gmail.com,user2@gmail.com"},
        {"company2": "user1@gmail.com,user2@gmail.com"},
        {"company3": "user1@gmail.com,user2@gmail.com"}
      ]
    }
  ]
  </code></pre>