Basic JSON encoding/decoding module for lua.