aboutsummaryrefslogtreecommitdiff
path: root/json.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-03-18 14:57:14 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-03-18 14:57:14 +0100
commit7352d1932e15b6da85774853e6953c0b390fd75b (patch)
treefa193c3a2a85e2628645598d8f48a77d0f4604eb /json.scm
parentAdd preliminary parse code. (diff)
downloadtexttv-7352d1932e15b6da85774853e6953c0b390fd75b.tar.gz
texttv-7352d1932e15b6da85774853e6953c0b390fd75b.tar.xz
Working.
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)))