Thanks for the super quick response - 3 minutes! I grabbed Crockford's json2.js and had to disable his check for existing implementations. I've documented this here: http://ossareh.posterous.com/how-to-patch-riak-0140-to-avoid-the-newline-p
Cheers, mike On Wed, Mar 23, 2011 at 13:34, Aphyr <ap...@aphyr.com> wrote: > Newline parsing is broken in JSON2.js shipped with Riak. Drop a more recent > version of JSON2.js in the directory referred to by js_source_dir in > app.config's riak_kv section, e.g. > > {js_source_dir, "/etc/riak/js/"} > > and reload the node. > > --Kyle > > > On 03/23/2011 01:31 PM, Michael Ossareh wrote: > >> Greets, >> >> https://gist.github.com/883872 >> >> That stack trace is the product of calling Riak.mapValuesJson in a map >> phase of a map reduce job. I checked the same parsing against Chrome and >> Firefox and they both parse the string as I'd expect. The object, as a >> string, that is being parsed is: >> >> "{\"bar\":\"baz\\r\\nfrob\"}" >> >> The setup is: Riak 0.14.0 on Mac OS X 10.6.6 and CentOS 5.5 >> >> >> Any advice / pointers, greatly appreciated. Also, let me know if there >> is anything else I can do to help. >> >> Cheers, >> >> mike >> >> >> >> _______________________________________________ >> riak-users mailing list >> riak-users@lists.basho.com >> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com >> >
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com