Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json
- def send_res(j): # EXAMPLE FUNCTION
- print(j)
- send_res(json.dumps({'evt': 'n','m':'__string__'}))
- json = require('json');
- function send_res(j) -- example function
- print(j);
- end
- local dict = {};
- dict['evt'] = {};
- dict['evt']['n'] = {};
- dict['evt']['n']['m'] = '__string__';
- send(json.encode(dict));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement