incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randall Leeds <randall.le...@gmail.com>
Subject Re: Strange integer anomaly in Erlang view
Date Tue, 11 May 2010 18:44:25 GMT
On Tue, May 11, 2010 at 11:40, Jarrod Roberson <jarrod@vertigrated.com> wrote:
> On Tue, May 11, 2010 at 2:31 PM, Mike Keen <mk@visiture.com> wrote:
>
>> I guess I'm confused as to why JavaScript is ever even involved when
>> writing views in Erlang. Excuse my ignorance, but does all JSON go through
>> it?
>>
>> Mike
>>
>> read all the comments to that bug report, it is the JSON parser that
> conforms to the limitations of JavaScript. And everything goes thru the JSON
> parser.
>

I think we're missing the point. Even if the erlang JSON parser
conforms to JSON's notion of numbers then I'd expect the id to be
transformed the same way for both the key and the value.

Maybe the key is implicitly treated as a string? Mike, which is the
"correct" value for the id?

Mime
View raw message