The goal of this library is to provide a simple method to encode/decode a limited-size JSON string/data set. More info about the JSON format can be found here: json.org
The library is compiled to a 'sgsjson' shared library so it can be included this way (assuming that, on Linux and similar systems, LD_LIBRARY_PATH is set correctly):
include "sgsjson";
json_encode( { a = 5, text = "something" } ) // returns {"a":5,"text":"something"}
json_decode( '{"a":5,"text":"something"}' ) // returns { a = 5, text = "something" }