title: How to flatten a json with nested lists by Jayway JsonPath?
body: <p>Currently I need to process some json results based on configuration but not hard code.</p>
  
  <p>For example, with the json as follows</p>
  
  <pre><code>{
      data: [{
          orderNo: "CG8310150",
          details: [{
              skuId: 4384,
              amount: 2
          }, {
              skuId: 4632,
              amount: 5
          }]
      }, {
          orderNo: "CG8310151",
          details: [{
              skuId: 4384,
              amount: 3
          }]
      }]
  }
  </code></pre>
  
  <p>I want the result as follows</p>
  
  <pre><code>[{
      orderNo: "CG8310150",
      skuId: 4384,
      amount: 2
  }, {
      orderNo: "CG8310150",
      skuId: 4632,
      amount: 5
  }, {
      orderNo: "CG8310151",
      skuId: 4384,
      amount: 3
  }]
  </code></pre>
  
  <p>If anyone has the solution with Jayway JsonPath, or has any suggestion of other tools, please let me known. </p>
  
  <p>Thanks for your help!</p>