@JChris thanks for the workaround! Unfortunately, given that
":bindvar" doesn't encode the value but [":bindvar"] does, I'm not
sure if there can be a way to add this kind of flexibility without
breaking compatibility with 0.11...
@Benoit this all works fine with numbers, since they don't need
anything to be correctly encoded as JSON keys. If you try non-numeric
string values CouchDB rightfully complains about invalid JSON.
How do you guys feel about my aforementioned rewriter syntax suggestion?
{
"from": "/tags/:tagname",
"to": "_view/by-tag",
"query": {
"key": { "name": ":tagname", "json_encode": true }
}
}
—Zach