Define and send a JSON object array
        Posted  
        
            by Eric
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Eric
        
        
        
        Published on 2010-05-17T22:23:57Z
        Indexed on 
            2010/05/17
            22:30 UTC
        
        
        Read the original article
        Hit count: 187
        
I'm looking for a way to define and send a JSON object array. I've figured out how to define a single JSON object, turn it into a string and send it, but what about an array of this type? Probably something simple I'm overlooking...
var myColumnSetting = { "ColumnName": name,
                        "ColumnIndex": index
                    }
convert it to a string
  var myJSONText = JSON.stringify(myColumnSetting, false);
© Stack Overflow or respective owner