I know I have seen a JSON module floating around... is it in Garrysmod by default though?
If it is, is it just require("json") to use it?
No it is not in Garrysmod by default.
There IS the GLON module which is an implementation of JSON which is included with garry's mod.
[QUOTE=Nori;17257745]There IS the GLON module which is an implementation of JSON which is included with garry's mod.[/QUOTE]
Ew GLON,
[url]http://json.luaforge.net/#download[/url]
You can download the recent version of JSON for lua there. It works right, just follow the instructions below.
yeah pretty much what he said.
Ahh thanks. Works great find me. Thanks for your help too Nori :)
so what JSON do anyway
[QUOTE=*Fish*;17263389]so what JSON do anyway[/QUOTE]
Data compression/encryption.
Data serialisation.
Lets all be fancy with it.
JSON turns data into a human readable format that's used to save and send data. Many common programs have parsers for it too, including web browsers.
[QUOTE=kevkev;17263699]Data compression/encryption.[/QUOTE]
What. That's pretty much the opposite of what it does, since it's meant to make data easy to read by humans.
[highlight]Go Datastream Team![/highlight]
-snip-
[QUOTE=Deco Da Man;17264245]
Data serialisation is intended to convert a complex (or simple) piece of data into a sealed linear piece of data to be store or sent. The result of deserialising the serialised data should be semantically identical to the original data without the needing the information that was used to construct the original piece of data.[/QUOTE]
Wow, that's what I just said, good job.
[QUOTE=Nori;17257745]There IS the GLON module which is an implementation of JSON which is included with garry's mod.[/QUOTE]
GLON won't decode standard JSON. (At least not the JSON Twitter returns) I tried.
[highlight]Go Datastream Team![/highlight]
-snip-
[QUOTE=Deco Da Man;17265025]Of course it won't, because it's [highlight]not a version of JSON.[/highlight] It's has a total different output format.[/QUOTE]
Then why is he saying
[QUOTE=Nori;17257745]There IS the GLON module which is an [highlight]implementation of JSON[/highlight] which is included with garry's mod.[/QUOTE]
?
[highlight]Go Datastream Team![/highlight]
-snip-
[QUOTE=Deco Da Man;17265099]Nori (LuaBanana, Janorkie) is an idiot, ignore him.[/QUOTE]
I lol'd you've got little room to talk. "LET ME SPOUT MOUNDS OF BULLSHIT THAT NO ONE UNDERSTANDS AND CRITICIZE THOSE THAT MAKE IT SIMPLISTIC AND EASY TO UNDERSTAND."
[img]http://wiki.garrysmod.com/images/c/c2/GLON_PICUTRE.jpg[/img]
[editline]02:42PM[/editline]
(picture not by Declan "DecoDaMan" White)
That's actually pretty funny, that there.
[highlight]Go Datastream Team![/highlight]
-snip-
[highlight]Go Datastream Team![/highlight]
-snip-
[QUOTE=Deco Da Man;17278287]During the creation of the Datastream you asked for advice, and I gave it: "Use JSON", "use umsg.PoolString", "Stop putting newlines after every single piece of code". I never had access to the source until just before you released it. [b][u]I am not an author of Datastream[/u][/b]. I couldn't care less about my reputation. I am simply pissed off that I've had [b]70[/b] people in the past two months message me with "Datastream sucks, go jump in a fire", "Datastream doesn't work, fix it" or "I can't get Datastream to work".
I want to make it clear: [highlight]I do not give a shit about that stupid thing[/highlight].
You [i]were[/i] an idiot, Nori, at least when you were making it. I could go get some of the G-Talk chat logs if you want.
And no matter what you say, GLON is not an implementation of the JSON protocol. If you bothered even glancing at the thing that you used in [i]"Your baby"[/i] (you did call it that once or twice), you would know that.
I don't see how I'm wrongly redirecting the blame, considering you made the damned thing.
And sometimes, simplicity isn't the key. If you can't understand something as it really is and need a dumbed down version, maybe you should consider either trying to learn it before you state it to someone else, or not state it at all.
I do admit, my version of the description of data serialisation was influenced by the appropriate Wikipedia entry from back when I was making GLON.
I'm pretty sure everyone else doesn't care for our squabbling and who ever's an idiot, and I'm tired of dwelling on the past. I have an Interpolation module to finish.
Also, I still think you're an idiot.[/QUOTE]
Not gonna snip that one out, buddy.
[QUOTE=Kempers;17278419]Not gonna snip that one out, buddy.[/QUOTE]
Janorkie and I have found common ground.
You're just trying to start trouble now.
[QUOTE=Deco Da Man;17278486]Janorkie and I have found common ground.
You're just trying to start trouble now.[/QUOTE]
Yeah. :colbert:
Sorry, you need to Log In to post a reply to this thread.