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

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

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0-beta-5
    • Fix Version/s: 1.0-beta-6
    • Component/s: Teeda Ajax
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: