Creating dynamic arrays as class properties
<p>I need to display data  "weekly" in JSON formatted output,for that i have to create 52 properties as DataMemebers in the class,because, Json outputs the class property name(here Week1 and week10) followed by the value. </p>

<pre><code>Week1,Week2,Week3....Week52,
</code></pre>

<p>my JSON formatted output looks like</p>

<pre><code>{"sale":NumberOfWeeks["Week1","Week10"],"Week1":[{name:"a",Qunatity:"50},{name:"b",Qunatity:"50}],"Week10":[{name:"a",Qunatity:"50},{name:"b",Qunatity:"50}]}
</code></pre>

<p>here </p>

<p>Week1 and Week10 are Object array types ,the displayed data in week1 and 10 are objects.</p>

<p>Week1 and Week10 are datamembers of a perticular class.</p>

<p>"NumberOfWeeks" refers to the numbers of a week between two dates, which have data relevent to the request .
ie. between the start date and end date  there are 10 weeks of which the 1st and the 10th week have data.</p>

<p>MY QUESTION is can i create week1 and week10 members dynamically??</p>
