Skip to content

Commit 6261956

Browse files
committed
🚸 💄 🥅
1 parent 73d02b2 commit 6261956

File tree

1 file changed

+8
-0
lines changed
  • springboot2.1/springboot-redis-lock/src/test/java

1 file changed

+8
-0
lines changed

springboot2.1/springboot-redis-lock/src/test/java/AAA.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import com.alibaba.fastjson.JSON;
2+
import com.alibaba.fastjson.JSONObject;
23
import com.google.common.collect.Maps;
34

45
import java.util.HashMap;
@@ -17,6 +18,13 @@ public static void main(String[] args) {
1718
System.out.println(s);
1819

1920

21+
22+
String str = "{}";
23+
24+
JSONObject jsonObject = JSON.parseObject(str);
25+
26+
System.out.println(jsonObject.toJSONString());
27+
System.out.println(JSON.toJSONString(jsonObject, true));
2028
}
2129

2230
}

0 commit comments

Comments
 (0)