title: Anorm (Scala) query with json object (Postgres)
body: <p>I'm trying to write this sql query with Anorm(Postgres):
  <code>
  SELECT * FROM employee  WHERE id = 1
  AND length(ee_json #&gt;&gt; '{path1,paht2}') BETWEEN  0 and 1;
  </code></p>
  
  <p>It should be something like this: </p>
  
  <pre><code> SQL(
   s"""
    |SELECT id FROM employee  WHERE id = {id}
    |AND length(ee_json #&gt;&gt; {param} ) BETWEEN  {min} and {max}
    """.stripMargin)
    .on('id -&gt; id,
    'min -&gt; min,
    'max -&gt; max,
    'param -&gt; "'{path1,path2}'")
    .as(parser.*)
  </code></pre>
  
  <p>but I'm getting <code>ArrayIndexOutOfBoundsException</code> when I run it.</p>