aboutsummaryrefslogtreecommitdiff
path: root/json.scm
diff options
context:
space:
mode:
Diffstat (limited to 'json.scm')
-rw-r--r--json.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/json.scm b/json.scm
new file mode 100644
index 0000000..bb33e5d
--- /dev/null
+++ b/json.scm
@@ -0,0 +1,8 @@
+(define-module (json)
+ #:export (get-json parse-json json->scm))
+;; (setenv "LD_LIBRARY_PATH" (string-append "/usr/local/lib:" (getcwd)))
+
+(load-extension "libguile-json" "init_json")
+
+(define (get-json filename)
+ (json->scm (parse-json filename)))