RuschGaming

mine

Jun 2nd, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. os.loadAPI("json")
  2. str = http.get("https://www.nightdev.com/hosted/obschat/?theme=bttv_dark&channel=ruschgaming&fade=30&bot_activity=true&prevent_clipping=false
  3. ").readAll()
  4. obj = json.decode(str)
  5. value = obj.thisVariableWasInTheJSONAndThisIsCoolerThanUsingStringGmatchToFindEverything
  6.  
  7. jsonstring = json.encode(obj)
  8. sendThisToWhateverNeedsIt(jsonstring)
  9.  
  10. -- Also, it is very good for very readable config files.
  11. prettystring = json.encodePretty(obj)
  12. saveThisToAFile(prettystring)
Advertisement
Add Comment
Please, Sign In to add comment