Hi everybody,

I have a document stored as application/json, and when it is present,
map/reduce queries that operate on the JSON contents result in ["bad
encoding"].

Before I go down the long path of reproducing in isolation, what should I
know about encodings, JSON and Riak?  Here's the document:
{"time":1271430844,"type":"checkin","user_id":131,"data":{"user_id":131,"name":"&$","task_list_id":"1234","address":"#%^*\u00a5+\u00a5\u2022\u00a3\u20ac","latitude":"35.9024975592833","longitude":"-78.8580127860656"}}

In my local standalone SpiderMonkey instance, the following works just fine:
JSON.parse("{\"time\":1271430844,\"points\":2,\"type\":\"checkin\",\"user_id\":131,\"data\":{\"user_id\":131,\"name\":\"&$\",\"task_list_id\":\"1234\",\"address\":\"#%^*\\u00a5+\\u00a5\\u2022\\u00a3\\u20ac\",\"latitude\":\"35.9024975592833\",\"longitude\":\"-78.8580127860656\"}}")

But when I remove this entry from the DB everything becomes ungummed again.

Any ideas before I start digging deeper?

Jimmy
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to