title: Filtering json-map objects by fields value, which is Some(value)
body: <p>There is a json file with more than 10000 rows. You can see the data format below:
  </p>
  
  <pre><code>{"id":1,"child_id":1822925634,"parent_id":-1,"name":"victor"}
  {"id":2,"child_id":1266710134,"parent_id":25,"name":"victor"}
  {"id":3,"child_id":572534000,"parent_id":-1,"name":"simone"}
  .
  .
  .
  {"id":10575,"child_id":572534781,"parent_id":135,"name":"victor"}
  </code></pre>
  
  <p>I want to filter all rows with <strong>parent_id</strong> equal to <strong>-1</strong>.</p>
  
  <p>First, my code reads file content, and then split it by line breaks.</p>
  
  <pre><code>val file = new File("./myFile.json")
  val jsonContent = FileUtils.readFileToString(file)
  JSON.globalNumberParser = {input : String =&gt; Integer.parseInt(input)}
  val jsonArray = jsonContent.split("\n").map(x=&gt;JSON.parseFull(x).get.asInstanceOf[Map[String,String]])
  </code></pre>
  
  <p>So far, I have a map object with 4 key-value pairs (everything is OK up to here). To debug a little bit, <strong>temp</strong> returns <strong>"Some(-1)"</strong> as expected.</p>
  
  <pre><code>val temp = jsonArray(2).get("parent_id")
  </code></pre>
  
  <p>Now, I want to filter <strong>jsonArray</strong> based on <strong>parent_id</strong>  </p>
  
  <pre><code>val selectedRows = jsonArray.filter(_.get("parent_id")=="-1").map(_.get("name"))
  </code></pre>
  
  <p>But it returns an empty map object. The problem is the equation is not satisfied. I tried ("parent_id")==<em>"-1"</em> or <em>"Some(-1)"</em> or <em>Some("-1")</em></p>