that didn't work, this might

This commit is contained in:
alisdair sullivan 2012-05-25 12:04:44 -07:00
parent b9b4472cf5
commit e97234c841

View file

@ -304,7 +304,7 @@ however, it is important to recognize that jsx is greedy by default. jsx will co
## exports ## ## exports ##
* ### encoder/3, decoder/3 and parser/3 ### * `encoder/3`, `decoder/3` & `parser/3`
```erlang ```erlang
decoder(Module, Args, Opts) -> Fun((JSONText) -> any()) decoder(Module, Args, Opts) -> Fun((JSONText) -> any())
@ -331,7 +331,7 @@ however, it is important to recognize that jsx is greedy by default. jsx will co
see [below](#callback_exports) for details on the callback module see [below](#callback_exports) for details on the callback module
* ### decode/1,2 ### * `decode/1,2`
```erlang ```erlang
decode(JSON) -> Term decode(JSON) -> Term
@ -361,7 +361,7 @@ however, it is important to recognize that jsx is greedy by default. jsx will co
raises a `badarg` error exception if input is not valid json raises a `badarg` error exception if input is not valid json
* ### encode/1,2 ### * `encode/1,2`
```erlang ```erlang
encode(Term) -> JSON encode(Term) -> JSON
@ -393,7 +393,7 @@ however, it is important to recognize that jsx is greedy by default. jsx will co
raises a `badarg` error exception if input is not a valid erlang representation of json raises a `badarg` error exception if input is not a valid erlang representation of json
* ### format/1,2 ### * `format/1,2`
```erlang ```erlang
format(JSON) -> JSON format(JSON) -> JSON
@ -413,7 +413,7 @@ however, it is important to recognize that jsx is greedy by default. jsx will co
raises a `badarg` error exception if input is not valid json raises a `badarg` error exception if input is not valid json
* ### minify/1 ### * `minify/1`
```erlang ```erlang
minify(JSON) -> JSON minify(JSON) -> JSON
@ -426,7 +426,7 @@ however, it is important to recognize that jsx is greedy by default. jsx will co
raises a `badarg` error exception if input is not valid json raises a `badarg` error exception if input is not valid json
* ### prettify/1 ### * `prettify/1`
```erlang ```erlang
prettify(JSON) -> JSON prettify(JSON) -> JSON
@ -439,7 +439,7 @@ however, it is important to recognize that jsx is greedy by default. jsx will co
raises a `badarg` error exception if input is not valid json raises a `badarg` error exception if input is not valid json
* ### is_json/1,2 ### * `is_json/1,2`
```erlang ```erlang
is_json(MaybeJSON) -> true | false is_json(MaybeJSON) -> true | false
@ -454,7 +454,7 @@ however, it is important to recognize that jsx is greedy by default. jsx will co
what exactly constitutes valid json may be altered per [options](#data_types) what exactly constitutes valid json may be altered per [options](#data_types)
* ### is_term/1,2 ### * `is_term/1,2`
```erlang ```erlang
is_term(MaybeJSON) -> true | false is_term(MaybeJSON) -> true | false
@ -473,7 +473,7 @@ however, it is important to recognize that jsx is greedy by default. jsx will co
the following functions should be exported from a jsx callback module the following functions should be exported from a jsx callback module
* ### Module:init/1 ### * `Module:init/1
```erlang ```erlang
Module:init(Args) -> InitialState Module:init(Args) -> InitialState
@ -484,7 +484,7 @@ the following functions should be exported from a jsx callback module
whenever any of `encoder/3`, `decoder/3` or `parser/3` are called, this function is called with the `Args` argument provided in the calling function to obtain `InitialState` whenever any of `encoder/3`, `decoder/3` or `parser/3` are called, this function is called with the `Args` argument provided in the calling function to obtain `InitialState`
### * Module:handle_event/2 ### * `Module:handle_event/2`
```erlang ```erlang
Module:handle_event(Event, State) -> NewState Module:handle_event(Event, State) -> NewState