I have found that error comes from json2.js, and in the future we should just 
use Spidermonkey's builtin.  https://issues.basho.com/show_bug.cgi?id=525

Sean Cribbs <s...@basho.com>
Developer Advocate
Basho Technologies, Inc.
http://basho.com/

On Aug 29, 2010, at 10:05 AM, James Sadler wrote:

> Hi Nils,
> 
> I ran into a similar problem last week.  It seems that certain
> characters can cause the JSON parser that ships as part of the
> Spidermonkey JavaScript interpreter that Riak uses to throw an
> exception. Off the top of my head, I think I managed to make it barf
> with a \r embedded within a string.
> 
> I don't have the links handy, but I do believe that this is fixed in
> Spidermonkey, and it's a simple matter of waiting until the fixes are
> merged into Riak.
> 
> Hope that helps :)
> 
> James.
> 
> On 29 August 2010 23:31, Nils Petersohn <p...@berlin.de> wrote:
>> hello,
>> 
>> when i have a simple json bucket entry like this: 
>> http://pastebin.com/XcWcvmYe
>> than i always get an error:
>> 
>> {"lineno":483,"message":"JSON.parse","source":"unknown"}
>> 
>> the stacktrace is here: http://pastebin.com/EGzUKqps
>> 
>> when i try to use a much simpler JSON string than there is no error.
>> 
>> this must be some fault of the JSON.parse method ...
>> 
>> thx for pointing me in the right direction ...
>> _______________________________________________
>> riak-users mailing list
>> riak-users@lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>> 
> 
> 
> 
> -- 
> James
> 
> _______________________________________________
> 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

Reply via email to