Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("json")
- str = http.get("https://www.nightdev.com/hosted/obschat/?theme=bttv_dark&channel=ruschgaming&fade=30&bot_activity=true&prevent_clipping=false
- ").readAll()
- obj = json.decode(str)
- value = obj.thisVariableWasInTheJSONAndThisIsCoolerThanUsingStringGmatchToFindEverything
- jsonstring = json.encode(obj)
- sendThisToWhateverNeedsIt(jsonstring)
- -- Also, it is very good for very readable config files.
- prettystring = json.encodePretty(obj)
- saveThisToAFile(prettystring)
Advertisement
Add Comment
Please, Sign In to add comment