|
@@ -5,10 +5,11 @@
|
|
|
<node id="s1" name="普通脚本1" type="script" language="python">
|
|
|
<![CDATA[
|
|
|
import json
|
|
|
- x='{"name": "Jack", "age": 75, "nationality": "China"}'
|
|
|
+
|
|
|
+ x='{"name": "杰克", "age": 75, "nationality": "China"}'
|
|
|
jsonData=json.loads(x)
|
|
|
- temperature=jsonData['name']
|
|
|
- print(temperature)
|
|
|
+ name=jsonData['name']
|
|
|
+ defaultContext.setData("name", name.decode('utf-8'))
|
|
|
|
|
|
|
|
|
a=6
|