title: javascript json data structure
body: <pre><code>var data1 = {
      "SummaryFields": [
          {
              "FieldName": "UserName",
              "FieldCode": "UDF_F_935",
              "Visable": true
          },
          {
              "FieldName": "DateNow",
              "FieldCode": "UDF_F_936",
              "Visable": true
          },
          {
              "FieldName": "ReportID",
              "FieldCode": "ReportID",
              "Visable": false
          }
      ],
      "Code": 0,
      "Message": null
  };
  
  var data2 = {
      "TotalCount": 2,
      "ReturnData": [
          {
              "UDF_F_935": "SuperMan",
              "UDF_F_936": "2009-05-01",
              "UDF_F_938": "admin",
              "ReportID": "221"
          },
          {
              "UDF_F_935": "SuperMan",
              "UDF_F_936": "2009-05-01",
              "UDF_F_938": "admin",
              "ReportID": "220"
          }
      ],
      "Code": 0,
      "Message": null
  };
  </code></pre>
  
  <p>I can get data1 from api one and then get data2 from api tow.</p>
  
  <p>I don't know what data will be display, the server will change the data at any time.</p>
  
  <p>The display style will change if the data change</p>
  
  <p>Now,I want to show the list on the phone like  </p>
  
  <p>UserName:SuperMan,<br>
  DateNow:2009-05-01,<br>
  ReportID:221  </p>
  
  <p>UserName:SuperMan,<br>
  DateNow:2009-05-01,<br>
  ReportID:220   </p>
  
  <p>How can I use data1 and data2 to structure json data by javascript? </p>
  
  <p>Need to consideration phone performance.</p>
  
  <p>Thanks for your help!</p>