|
|
@@ -1,5 +1,7 @@
|
|
|
package com.uas.platform.b2c;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.uas.platform.core.util.Des;
|
|
|
import org.junit.Test;
|
|
|
|
|
|
@@ -51,5 +53,13 @@ public class DesTest {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
+ @Test
|
|
|
+ public void testJson(){
|
|
|
+ String str = "[{\"aaa\":\"111\", \"bbb\":null},{\"aaa\":\"111\"}]";
|
|
|
+ String str1 = "{\"aaa\":\"111\", \"bbb\":null}";
|
|
|
+ String str2 = "{wewe";
|
|
|
+ Object jsonObject = JSON.parse(str2);
|
|
|
+ System.out.println(JSON.toJSONString(jsonObject));
|
|
|
+ }
|
|
|
}
|
|
|
|