How to create JSON from data in a TWebClientDataSet

I use the following to move received JSON into a TWebClientDataSet :

    tbStaff.Rows := TJSArray.new(TJSJson.parse(AResponse));

How do I do the opposite and create the JSON from the ClientDataSet to send back to my XData server?

I need to send a single record and also multiple records.

Thanks,
Paul

You can do the other way round.

Just read the tbStaff.Rows property for a JSON array with multiple records, or use tbStaff.Rows[Index] for a specific JSON object.