Array of json into json object : <p>I am trying to convert array of json into json object is this the correct syntax in java script file</p>

<pre><code>var request = {"data":[{
        "contractorName": param.contractorName,
        "hoursWorked": param.hoursWorked,
        "hourlyRate": param.hourlyRate,
        "paymentAmount": param.paymentAmount,
        "workerUserId": param.workerUserId
    }]  
    }
</code></pre>
