Advertisement
Guest User

Untitled

a guest
Jan 9th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. var myRequest = req.body
  2. console.log(myRequest)
  3.  
  4. {
  5. "methodcall": {
  6. "methodname": ["userLogin"],
  7. "params": [{
  8. "param": [{
  9. "value": [{
  10. "string": ["test1"]
  11. }]
  12. }, {
  13. "value": [{
  14. "string": ["password"]
  15. }]
  16. }]
  17. }]
  18. }
  19. }
  20.  
  21. var username = myRequest.methodcall.params.param...first value string
  22. var password = myRequest.methodcall.params.param...second value string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement