title: Wiremock - Multiple stubs in one file
body: <p>I'm trying to group multiple stubs into one JSON file.</p>
  <p>I've already ready read this post :
  <a href="https://stackoverflow.com/questions/61519644/load-wiremock-stub-files">Load wiremock stub files</a>
  and this one  <a href="https://github.com/tomakehurst/wiremock/issues/987https://github.com/tomakehurst/wiremock/issues/987" rel="nofollow noreferrer">https://github.com/tomakehurst/wiremock/issues/987https://github.com/tomakehurst/wiremock/issues/987</a></p>
  <p>but I still can't make it work.</p>
  <p>Currently, I have the following class:</p>
  <pre class="lang-java prettyprint-override"><code>@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
  @AutoConfigureWireMock(port = 0, stubs = &quot;classpath:/stubs/mappings&quot;, files = &quot;classpath:/stubs&quot;)
  public class ConfigurationTest {
  
  @Autowired
    protected WireMockServer wireMockServer;
  
  }
  </code></pre>
  <p>In my <code>test/java/resources</code> folder, I have :</p>
  <p><code>mappings</code> folder with different stubs</p>
  <p>I'd like to have one file that contains all the stubs in the <code>mappings</code>.</p>
  <p>I tried to create a <code>.json</code> file under <code>mappings</code> as below :</p>
  <pre class="lang-json prettyprint-override"><code>
  {
    &quot;mappings&quot; : [{
      
     ]}
  }
  
  </code></pre>
  <p>but i get the following exception</p>
  <pre><code>Unrecognized field &quot;mappings&quot; (class com.github.tomakehurst.wiremock.stubbing.StubMapping), not marked as ignorable
  </code></pre>
  <p>If I try a json that starts an array, I also have an exception</p>
  <p>Cannot deserialize instance of java.lang.String out of START_ARRAY token at</p>
  <p>Do you have any idea on how to resolve this issue ?
  Thanks.</p>