回答編集履歴
1
replace文の間違いを修正
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
a = "[{'test': 'AND', 'children': [{'test3': 'value', 'test2': [12345678]}]}]"
|
8
8
|
|
9
|
-
b = a.replace('"
|
9
|
+
b = a.replace("'", '"') #
|
10
10
|
|
11
11
|
d = json.loads(b)
|
12
12
|
|