unless iterate option is specified, jsx now buffers events internally before returning
This commit is contained in:
parent
986b60af37
commit
8bb0f66470
5 changed files with 143 additions and 100 deletions
|
@ -39,7 +39,7 @@
|
|||
jsx_term() | {jsx, incomplete, fun()}.
|
||||
|
||||
json_to_term(JSON, Opts) ->
|
||||
P = jsx:decoder(extract_parser_opts(Opts)),
|
||||
P = jsx:decoder([iterate] ++ extract_parser_opts(Opts)),
|
||||
case proplists:get_value(strict, Opts, false) of
|
||||
true -> collect_strict(P(JSON), [[]], Opts)
|
||||
; false -> collect(P(JSON), [[]], Opts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue