title: Scala, PureConfig - how to read json config file?
body: <p>I have a simple <code>config.json</code> file in my resources:</p>
  <pre><code>{
    &quot;configs&quot;: [
      {
        &quot;someConfig&quot;: {
          &quot;name&quot;: &quot;my_name&quot;,
          &quot;filters&quot;: {
            &quot;name&quot;: &quot;new&quot;
          },
          &quot;id&quot;: &quot;some-config-id&quot;,
          &quot;fixes&quot;: {
            &quot;isFixed&quot;: true
          }
        }
      }
    ]
  }
  </code></pre>
  <p>I also created <code>case classes</code> for given fields:</p>
  <pre><code>final case class Configs(configs: List[SomeConfig])
  
    final case class SomeConfig(name: String,
                                filters: Filters,
                                id: String,
                                fixes: Fixes)
  
    final case class Filters(name: String)
  
    final case class Fixes(isFixed: Boolean)
  </code></pre>
  <p>Now I want to read this config file with <code>PureConfig</code>:</p>
  <pre><code>val configs: Configs = ConfigSource.resources(&quot;configs.json&quot;).loadOrThrow[Configs]
  </code></pre>
  <p>But I got errors:</p>
  <pre><code>Exception in thread &quot;main&quot; pureconfig.error.ConfigReaderException: Cannot convert configuration to Configs. Failures are:
  - Key not found: 'name'.
  - Key not found: 'filters'.
  - Key not found: 'id'.
  - Key not found: 'fixes'
  </code></pre>
  <p>I added also <code>ProductHint</code>:</p>
  <pre><code> implicit def hint[A] = ProductHint[A](ConfigFieldMapping(CamelCase, CamelCase))
  </code></pre>
  <p>But it did not help.
  How I could fix it to read configs from <code>json</code> file?</p>