title: How to read JSON file in reactive way using spring webflux?
body: <p>I am trying to read file from classpath in a reactive way using spring webflux. I am able to read the file. But I am not able to parse into an Foo object.</p>
  <p>I am trying the following way, but not sure how to convert to an FOO class.</p>
  <pre><code>public Flux&lt;Object&gt; readFile() {
      Flux&lt;DataBuffer&gt; readFile1 = DataBufferUtils.read(&quot;classpath:test.json&quot;, new DefaultDataBufferFactory(), 4096);
      return new Jackson2JsonDecoder().decode(readFile1,
          ResolvableType.forType(List.class,Foo.class), null, Collections.emptyMap());
      }
  </code></pre>
  <p>Help appreciated.</p>