From b594499e896d847f0d4e48359875c9d57694c7cd Mon Sep 17 00:00:00 2001 From: alisdair sullivan Date: Wed, 23 May 2012 23:04:21 -0700 Subject: [PATCH] more minor README tweaks --- README.markdown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index 48fdcee..15ec200 100644 --- a/README.markdown +++ b/README.markdown @@ -358,7 +358,8 @@ the option `labels` controls how keys are converted from json to erlang terms. ` [{<<"a list">>, [false, false, false]}] ``` -if more than one decoder is declared a `badarg` error exception will result +if more than one post decoder is declared a `badarg` error exception will result + raises a `badarg` error exception if input is not valid json @@ -385,7 +386,7 @@ encode(Term, Opts) -> JSON <<"{\"a list\": [false, false, false]}">> ``` -if more than one decoder is declared a `badarg` error exception will result +if more than one pre encoder is declared a `badarg` error exception will result the option `{space, N}` inserts `N` spaces after every comma and colon in your json output. `space` is an alias for `{space, 1}`. the default is `{space, 0}`