From 51732e53571e2214f9c2dc71deff334a07508586 Mon Sep 17 00:00:00 2001 From: alisdair sullivan Date: Wed, 30 Nov 2011 22:27:26 -0800 Subject: [PATCH] more adjustments for github parsing --- README.markdown | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.markdown b/README.markdown index 913b17a..7abb589 100644 --- a/README.markdown +++ b/README.markdown @@ -17,6 +17,7 @@ to build jsx, `make` or `./rebar compile` parses a JSON text (a utf8 encoded binary) and produces an erlang term (see json <-> erlang mapping details below) `json_to_term(JSON) -> Term` + `json_to_term(JSON, Opts) -> Term` types: @@ -33,6 +34,7 @@ if the option `loose_unicode` is present invalid codepoints are replaced with `u produces a JSON text from an erlang term (see json <-> erlang mapping details below) `term_to_json(Term) -> JSON` + `term_to_json(Term, Opts) -> JSON` types: @@ -59,6 +61,7 @@ if the option `escape_forward_slash` is enabled, `$/` is escaped. this is not no produces a JSON text from JSON text, reformatted `format(JSON) -> JSON` + `format(JSON, Opts) -> JSON` see `term_to_json/1,2` for types and options