-
Notifications
You must be signed in to change notification settings - Fork 75
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
Panic on MustInt() #8
Comments
Doesn't JSON make all slices {}interface{}? Do you think MSISlice() should convert it?
|
JSON decides all integer values to float64. Try this again with float64. Do you think .int() should try to coerce to int? Sent from my iPhone
|
No, it is []interface{}. On Thu, Sep 19, 2013 at 3:36 PM, Mat Ryer notifications@github.com wrote:
Andrew Degtyarev |
Yep, I already did it, but for high level library like objx I expect than I On Thu, Sep 19, 2013 at 3:53 PM, Tyler notifications@github.com wrote:
Andrew Degtyarev |
Yes I agree. We should try our hardest to return what is asked for. |
Did the MustInt() at least give you a good panic? On 19 Sep 2013, at 08:16, Tyler notifications@github.com wrote:
|
Yes, I made an error in the example, there should be MustInt() instead of On Thu, Sep 19, 2013 at 7:14 PM, Mat Ryer notifications@github.com wrote:
Andrew Degtyarev |
Hi!
I have the following JSON structure:
Objx panics on json.Get("d[0].id").Int(). Test:
The text was updated successfully, but these errors were encountered: