I need to turn a Moonscript Class (so, in this case a Table) into a StringValue
Obviously, I will use JSON for Serilization (I don't need MetaTables, just the Value inside of them)
What Would my best approach to this be?
(I'm looking for a solution that would allow me to load any class from JSON - probably via constructor - and then serilize it on the fly - this shouldn't happen too often but atleast once every 8 seconds)
I'm a little confused on how I should implement this.. Ideas?
I'm not exactly sure what it is you're looking for, but you can use the JSONEncode
and JSONDecode
methods of HttpService
to do as their names suggest.