summaryrefslogtreecommitdiff
path: root/src/chttpd_external.erl
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-06-24 17:38:08 -0700
committerAdam Kocoloski <adam@cloudant.com>2010-08-12 11:18:46 -0400
commita73edef9c693bb2fd29ba2b13a7a52b81afbed95 (patch)
treecb6658716bc138462e69544cc7d2490dec14b8d6 /src/chttpd_external.erl
parent1a7f56db98becf1bed2f7a91c18184f68fce68ef (diff)
finally implemented _list
Diffstat (limited to 'src/chttpd_external.erl')
-rw-r--r--src/chttpd_external.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chttpd_external.erl b/src/chttpd_external.erl
index fa9e7025..53420211 100644
--- a/src/chttpd_external.erl
+++ b/src/chttpd_external.erl
@@ -110,11 +110,11 @@ json_query_keys({Json}) ->
json_query_keys([], Acc) ->
{lists:reverse(Acc)};
json_query_keys([{<<"startkey">>, Value} | Rest], Acc) ->
- json_query_keys(Rest, [{<<"startkey">>, couch_util:json_decode(Value)}|Acc]);
+ json_query_keys(Rest, [{<<"startkey">>, ?JSON_DECODE(Value)}|Acc]);
json_query_keys([{<<"endkey">>, Value} | Rest], Acc) ->
- json_query_keys(Rest, [{<<"endkey">>, couch_util:json_decode(Value)}|Acc]);
+ json_query_keys(Rest, [{<<"endkey">>, ?JSON_DECODE(Value)}|Acc]);
json_query_keys([{<<"key">>, Value} | Rest], Acc) ->
- json_query_keys(Rest, [{<<"key">>, couch_util:json_decode(Value)}|Acc]);
+ json_query_keys(Rest, [{<<"key">>, ?JSON_DECODE(Value)}|Acc]);
json_query_keys([Term | Rest], Acc) ->
json_query_keys(Rest, [Term|Acc]).