FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.



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
 

FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.