如何将奥义字符串转换为列表

时间:2018-07-12 08:49:42

标签: python json string

我想转换

'["$.insert(\"//localhost:0000/aaaa/js/\", function() {});", "$.functions($)(\"//localhost:0000/aaa2/js/\", function() {});", "$.placeholder.id+\"&_uid=\"+$.p.token+\"&_ref=\"+$.p.url;"]'

["$.insert(\"//localhost:0000/aaaa/js/\", function() {});", "$.functions($)(\"//localhost:0000/aaa2/js/\", function() {});", "$.placeholder.id+\"&_uid=\"+$.p.token+\"&_ref=\"+$.p.url;"]

在Django JSON中:

{

"templates": ["$.insert(\"//localhost:0000/aaaa/js/\", function() {});", 
"$.functions($)(\"//localhost:0000/aaa2/js/\", function() {});", "$.placeholder.id+\"&_uid=\"+$.p.token+\"&_ref=\"+$.p.url;"]

}

0 个答案:

没有答案