赞
踩
- package com.company;
-
- import com.alibaba.fastjson.JSONObject;
- import java.util.ArrayList;
- import java.util.HashMap;
- import java.util.List;
- import java.util.Map;
-
- public static void main(String[] args) {
-
- JSONObject fastJsons1 = new JSONObject();
- fastJsons1.put("kye", "456");
- System.out.println("#1:" + fastJsons1.toString());
-
- JSONObject fastJsons2 = new JSONObject();
- Map<String,Integer> map2 = new HashMap<>();
- map2.put("a",1123);
- map2.put("b",1124);
- map2.put("c",1125);
- fastJsons2.put("map2", map2);
-
- List<Integer> list2 = new ArrayList<>();
- list2.add(123);
- list2.add(456);
- list2.add(789);
- list2.add(1011);
- fastJsons2.put("list2", list2);
-
- Box box1 = new Box(11,21L,31.56,"label1");
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。