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

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

XMLWordPrintable

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major Major
    • 1.0-beta-6
    • Affects Version/s: 1.0-beta-5
    • Component/s: Teeda Ajax
    • None

      今まで、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]}
      

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

              Created:
              Updated:
              Resolved: