Yep, that's a feature of JavaScript. No quotes means it's a number, not a
string, and numbers that start with 0 are assumed to be octal (base 8). Even
parseInt("063") will give you 51, since again, it assumes you mean octal.
I suggest you either strip of the leading zero on the server side, and allow
it to transmit as a number (no quotes), or wrap it in quotes and pull it out
with parseInt("063", 10) to force it to do base 10.
--Erik
On 8/16/07, Terry B <[EMAIL PROTECTED]> wrote:
>
>
> has anyone had any problem with JSON whereas a string is "063" and it
> gets translated to a number, in this case "51"???
>
> The response from a call has the appropiate value [063] but I have
> noticed that since it is not in string notation ["063"] when used it
> gets converted.
>
> I would rather not have to re-write my sql to force " " in it but want
> JSON to recognize this as a string value and numeric.
>
> ~Terry
>
>