I recently had need to copy a grid to clipboard as CSV and after a brief googling concluded that I needed to roll my own.
Here it is.
//
function jsonToCSV(sourceRows, omitHeader, fieldsToIgnore)
{
/// <summary>
/// Converts an array of JSON objects to CSV.
///</summary>
/// <param name="sourceRows" type="Object[]">
/// An array of objects containing a single level of scalar fields.
/// e.g. [{ foo: "bar", fu: true }, { foo: "baarbar", fu: false }]
///
/// The...