Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't recognise JSON numbers #24

Open
strobemonkey opened this issue May 27, 2011 · 3 comments
Open

Doesn't recognise JSON numbers #24

strobemonkey opened this issue May 27, 2011 · 3 comments

Comments

@strobemonkey
Copy link

If my JSON has its Strength attribute as a string:

{"id":"e18fb7c6a01bda18d97d5fd3670017d5","key":"e18fb7c6a01bda18d97d5fd3670017d5","value":{"LastName":"Katz","Address":"2407 Sawyer drive, Charlotte NC","Strength":"5","Type":"contact"}},
{"id":"e18fb7c6a01bda18d97d5fd367002092","key":"e18fb7c6a01bda18d97d5fd367002092","value":{"LastName":"Kerr","Address":"123 Fake st., such and such","Strength":"9","Type":"contact"}}
]}

then everything's fine, but if I have the Strength attribute as a number then Weld ignores it:

{"id":"e18fb7c6a01bda18d97d5fd3670017d5","key":"e18fb7c6a01bda18d97d5fd3670017d5","value":{"LastName":"Katz","Address":"2407 Sawyer drive, Charlotte NC","Strength":5,"Type":"contact"}},
{"id":"e18fb7c6a01bda18d97d5fd367002092","key":"e18fb7c6a01bda18d97d5fd367002092","value":{"LastName":"Kerr","Address":"123 Fake st., such and such","Strength":9,"Type":"contact"}}
]}

Would that be right?

@heapwolf
Copy link
Collaborator

Hmm, I specifically fixed this issue a while ago, I will follow up

@tmpvar
Copy link
Owner

tmpvar commented Jun 16, 2011

@strobemonkey, sorry for the delay.. were you using HEAD or the latest tag/npm version?

@strobemonkey
Copy link
Author

No worries. I was using HEAD, in Firefox 4.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants