title: Json error parsing into case class, json array
body: <p>I am trying to parse this json object and I ran a unit test  and I got this error <code>Error: Error when parsing result of 'listdescriptors': {&quot;obj&quot;:[{&quot;msg&quot;:[&quot;error.expected.jsarray&quot;],&quot;args&quot;:[]}]}! [info]   at org.bitcoins.rpc.client.common.Client.parseResult(Client.scala:455)</code>. <strong>I think the problem may be that I'm parsing the json file into a case class incorectly.</strong></p>
  <pre><code>Result:
  {                                 (json object)
    &quot;wallet_name&quot; : &quot;str&quot;,          (string) Name of wallet this operation was performed on
    &quot;descriptors&quot; : [               (json array) Array of descriptor objects
      {                             (json object)
        &quot;desc&quot; : &quot;str&quot;,             (string) Descriptor string representation
        &quot;timestamp&quot; : n,            (numeric) The creation time of the descriptor
        &quot;active&quot; : true|false,      (boolean) Activeness flag
        &quot;internal&quot; : true|false,    (boolean, optional) Whether this is an internal or external descriptor; defined only for active descriptors
        &quot;range&quot; : [                 (json array, optional) Defined only for ranged descriptors
          n,                        (numeric) Range start inclusive
          n                         (numeric) Range end inclusive
        ],
        &quot;next&quot; : n                  (numeric, optional) The next index to generate addresses from; defined only for ranged descriptors
      },
      ...
    ]
  }
  
  </code></pre>
  <pre><code>object JsonSerializers {
  
  implicit val descriptorsClassReads: Reads[descriptorsClass] =
      Json.reads[descriptorsClass]
  
    implicit val listDescriptorsReads: Reads[listDescriptorsResult] =
      Json.reads[listDescriptorsResult]
  </code></pre>
  <pre><code>sealed abstract class WalletResult
  
  case class listDescriptorsResult(
      wallet_name: String,
      descriptors: Vector[descriptorsClass]
  ) extends WalletResult
  
  case class descriptorsClass(
      desc: String,
      timestamp: ZonedDateTime,
      active: Boolean,
      internal: Boolean,
      range: Array[(Int, Int)],
      next: Int
  ) extends WalletResult
  </code></pre>