map/reduce problem

Shai Garniek sgarniek at gmail.com
Tue Jan 4 11:06:17 EST 2011


I am running a map/reduce query on riak and I'm getting something weird in
the result.
After 2 map phases and one reduce phase I'm getting the following result

["{\"apps\":[\"11\",\"12\"]}","{\"apps\":[\"1\",\"2\",\"3\",\"4\"]}"]


when I'm expecting this result.



[{"apps":["11","12"]},{"apps":["1","2","3","4”]}]


can anyone tell me why the map/reduce phases wrapped my json objects with ""
and added all the backslashes?

when I read these values straight forward I get them as objects and not
wrapped and escaped.


-- 
Shai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110104/86c8d58f/attachment.html>


More information about the riak-users mailing list