This is a memo. python side import requests
res = requests.get('https://hogehoge.org/fugafuga.json)
data = res.json()
self.memory.raiseEvent("myapp/data", json.dumps(data).encode("utf-8"))
Pass as, in the receiving Javascript, $.subscribeToALMemoryEvent("myapp/data", function (data) { data = JSON.parse(data); console.log(data); }); So OK !!
Recommended Posts