Permalink
Browse files

added usage example to readme

  • Loading branch information...
Chris Anderson
Chris Anderson committed Aug 8, 2008
1 parent 9a2d1f3 commit f918f4593fca7e896b6edfe7adce5248b80ca6c9
Showing with 14 additions and 1 deletion.
  1. +14 −1 README
View
15 README
@@ -10,7 +10,20 @@ yecc:file(json_grammar), c(json_grammar).
c(json_eep).
+% Run the tests
+
json_eep:test().
-To profile the parser:
+% To profile the parser:
+
+json_eep:profile().
+
+
+% Example usage:
+
+E = json_eep:json_to_term("[1,3.14,{\"key\":\"value\"}]").
+%-> [1,3.14,{[{<<"key">>,<<"value">>}]}]
+
+json_eep:term_to_json(E).
+% "[1,3.14000000000000012434,{\"key\":\"value\"}]"

0 comments on commit f918f45

Please sign in to comment.