Github user eiri commented on the issue:

    https://github.com/apache/couchdb-couch-mrview/pull/47
  
    We are _not_ calling JSON_DECODE twice, this is not the problem here. We 
are getting list of query attributes as a json payload, decoding it 
[here](https://github.com/apache/couchdb-chttpd/blob/master/src/chttpd_view.erl#L56)
 and then passing them to `couch_mrview_http:parse_params/3`, assuming that it 
is idempotent to values of the attributes to be string of json or already 
decoded terms. And `parse_json` respects this for ints, strings, booleans or 
hashes, but assumes that _any_ list is a stringified json, while jiffy itself 
treat list of binaries as a decoded json array (`[<<"a">>, <<"b">>] = 
jiffy:decode(jiffy:encode([<<"a">>, <<"b">>]))`).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to