Advertisement
Guest User

Untitled

a guest
Oct 13th, 2017
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 0.24 KB | None | 0 0
  1. # example: {"users":
  2.   "bob": {"name": "Bob"},
  3.   "alice": {"name": "Alice"}
  4. }
  5. # ...
  6. let jsonNode = parseJson(response.body)
  7. let config = jsonNode["users"]
  8.  
  9. for username, userdata in config:
  10.     echo username & "," & userdata["name"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement