Skip to content

Doesn't recognise JSON numbers #24

Description

@strobemonkey

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?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions