Uploaded image for project: 'Teeda'
  1. Teeda
  2. TEEDA-95

TeedaAjaxにおけるAjaxUtilでプリミティブ型の配列も変換可能にする

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 1.0-beta-6
    • 1.0-beta-5
    • Teeda Ajax
    • None

    Description

      今まで、TeedaAjaxにおけるObject=>JSON変換では
      プリミティブ型の配列を扱えていなかったので、変換出来るようにします。
      例)

       
      public class Test {
              private int[] bbb = { 11, 22, 33 };
              private boolean[] ccc = { true, false, true };
              private double[] ddd = { 1.11, 2.22, 3.33 };
              public int[] getBbb() {
                  return bbb;
              }
              public boolean[] getCcc() {
                  return ccc;
              }
              public double[] getDdd() {
                  return ddd;
              }
      }
      

      変換後

       
      {bbb:[11,22,33],ccc:[true,false,true],ddd:[1.11,2.22,3.33]}
      

      Attachments

        Activity

          People

            yone yone
            yone yone
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: