summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/cheat/cheat_json.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/cheat/cheat_json.lua')
-rw-r--r--plugins/cheat/cheat_json.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/cheat/cheat_json.lua b/plugins/cheat/cheat_json.lua
new file mode 100644
index 00000000000..fd2778be63d
--- /dev/null
+++ b/plugins/cheat/cheat_json.lua
@@ -0,0 +1,12 @@
+local jsoncheat = {}
+
+function jsoncheat.filename(name)
+ return name .. ".json"
+end
+
+function jsoncheat.conv_cheat(data)
+ local json = require("json")
+ return json.parse(data)
+end
+
+return jsoncheat