more minor README tweaks

This commit is contained in:
alisdair sullivan 2012-05-23 23:04:21 -07:00
parent 85debfd1ca
commit b594499e89

View file

@ -358,7 +358,8 @@ the option `labels` controls how keys are converted from json to erlang terms. `
[{<<"a list">>, [false, false, false]}] [{<<"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 raises a `badarg` error exception if input is not valid json
@ -385,7 +386,7 @@ encode(Term, Opts) -> JSON
<<"{\"a list\": [false, false, false]}">> <<"{\"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}` 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}`