9b50a1db8822572dda8035716cadeac527c6d435.svn-base 640 B

1234567891011121314151617181920212223242526272829303132
  1. package org.zsl.testmybatis;
  2. import java.util.ArrayList;
  3. import java.util.HashMap;
  4. import java.util.List;
  5. import java.util.Map;
  6. import com.alibaba.fastjson.JSONArray;
  7. import com.alibaba.fastjson.JSONObject;
  8. import com.synyi.edc.util.XmlUtils;
  9. public class Test {
  10. public static void main(String[] args) {
  11. // TODO Auto-generated method stub
  12. Map<String,String> map = new HashMap();
  13. map.put("groupType", "年龄段");
  14. map.put("minValue", "0");
  15. map.put("maxValue", "100");
  16. map.put("interval", "10");
  17. String str = JSONObject.toJSON(map).toString();
  18. System.out.println(str);
  19. }
  20. }