summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--json.lisp6
-rw-r--r--package.lisp4
2 files changed, 9 insertions, 1 deletions
diff --git a/json.lisp b/json.lisp
index cc3e0c1..44d6262 100644
--- a/json.lisp
+++ b/json.lisp
@@ -125,3 +125,9 @@
null-symbol))
(_ whitespace))
v))
+
+(defun parse-string (str)
+ (run json-value (input:from-string str)))
+
+(defun parse-file (file)
+ (run json-value (input:from-file file)))
diff --git a/package.lisp b/package.lisp
index 609b6b4..d2b1e6f 100644
--- a/package.lisp
+++ b/package.lisp
@@ -1,2 +1,4 @@
(defpackage #:json
- (:use #:cl #:parser))
+ (:use #:cl #:parser)
+ (:export #:parse-string
+ #:parse-file))