[HELP] Glon to Gmod 13

Hey Guys,
Can someone tell me how do I convert Glon code to Gmod 13?

like glon.decode and glon.encode


You don’t. You use something else like vON.

Oh ofc that’s not converting, ty (lol)

Just use built in util.TableToJSON and util.JSONToTable.

**He’s asking how to convert, not what to use now that it’s been removed.
[editline]15th March 2014[/editline]

Here is a copy of GLON’s source: http://codepad.org/QRQoDiXx (from http://www.facepunch.com/threads/showthread.php?t=691151)

Save a copy of that script in your lua/autorun folder, e.g. “glon.lua”

Now, depending on what you want to do, this should allow you to use glon.encode and glon.decode.

Converting however, would require something like vON, or you could use the built in JSON functions that Robotboy posted above, doing something like:

local bleh = util.TableToJSON( glon.decode( your string ) )

[editline]17th March 2014[/editline]

not recommending that you use this for anything other than converting, since it’s old and has been removed for a reason. (sorry for not clarifying, probably where the dumbs came from)