How to send Json to Struts2?
<p>There is a Json object and I don't know how to get it in struts2,there are two arrays in it,how to transfer it to ArrayList in java?</p>

<p><img src="https://i.stack.imgur.com/tnxGR.png" alt="enter image description here"></p>

<pre class="lang-js prettyprint-override"><code>var params = {
        'goodsIdList':goodsIdList,
        'goodsCountList':goodsCountList
    }
    console.log(params);
    $.ajax({
        type: 'post',
        url: "checkGoodsIsEnough",
        data: params,
        dataType:"json",
        async: true,
        success: alert("success"),
        error: function (jqXHR) {
            alert(jqXHR.status);
        }

    })
</code></pre>