Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import json
  2.  
  3. def send_res(j): # EXAMPLE FUNCTION
  4. print(j)
  5. send_res(json.dumps({'evt': 'n','m':'__string__'}))
  6.  
  7. json = require('json');
  8.  
  9. function send_res(j) -- example function
  10. print(j);
  11. end
  12. local dict = {};
  13. dict['evt'] = {};
  14. dict['evt']['n'] = {};
  15. dict['evt']['n']['m'] = '__string__';
  16. send(json.encode(dict));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement