Selaa lähdekoodia

Document dedupe_keys option

pull/158/head
Paul J. Davis 7 vuotta sitten
vanhempi
commit
6da61bbfdf
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. +4
    -0
      README.md

+ 4
- 0
README.md Näytä tiedosto

@ -48,6 +48,10 @@ The options for decode are:
JSON term is decoded the return value of decode/2 becomes
`{has_trailer, FirstTerm, RestData::iodata()}`. This is useful to
decode multiple terms in a single binary.
* `dedupe_keys` - If a key is repeated in a JSON object this flag
will ensure that the parsed object only contains a single entry
containing the last value seen. This mirrors the parsing beahvior
of virtually every other JSON parser.
* `{bytes_per_red, N}` where N >= 0 - This controls the number of
bytes that Jiffy will process as an equivalent to a reduction. Each
20 reductions we consume 1% of our allocated time slice for the current

Ladataan…
Peruuta
Tallenna