From 6da61bbfdfb2411a1bf386bf0c704085d20415eb Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Tue, 31 Oct 2017 12:09:56 -0500 Subject: [PATCH] Document dedupe_keys option --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index e291de4..fa20dd6 100644 --- a/README.md +++ b/README.md @@ -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