Jun 18, 2012, 7:32 AM
261 Posts

Re: JSON?

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags: Repeat,JSON
  • Replies: 2
Dan,
 
You should add the individual objects to the array as objects, not as strings. Sample:
 
var out = [];   //shortcut for new Array();
out.push( {"string1" : "something", "string2" : "something" } );
out.push( {"string1" : "something", "string2" : "something" } );
return out;
 
If your variable is called rowData you can refer to it like you already tried: rowData.string1
 
Mark