Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added usage example to readme

  • Loading branch information...
commit f918f4593fca7e896b6edfe7adce5248b80ca6c9 1 parent 9a2d1f3
Chris Anderson authored
Showing with 14 additions and 1 deletion.
  1. +14 −1 README
15 README
View
@@ -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\"}]"
Please sign in to comment.
Something went wrong with that request. Please try again.