```lua
rsjson = require("rsjson")
obj = { a = "a", b = "b", c = 3 }
-- compact printing
rsjson.encode(obj)
-- pretty printing
config = rsjson.EncodeConfig:new()
config.indent = 4
rsjson.encode(obj, config)
-- objects can be loaded from json
str = [[{
}]]
t = rsjson.decode(str)
for k,v in ipairs(t) do
end
```
The API is documented in the [`library/rsjson.d.lua`](../library/rsjson.d.lua) file.