Skip to content

Case sensitivity #252

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

Closed
lookfirst opened this issue Mar 24, 2018 · 3 comments
Closed

Case sensitivity #252

lookfirst opened this issue Mar 24, 2018 · 3 comments

Comments

@lookfirst
Copy link

This used to work (1.0.5):

{"t": 10.0}

type struct F {
  T float64 `json:"T"`
}

With 1.1.3, I have to do this:

type struct F {
  T float64 `json:"t"`
}

With 1.1.3, {"T":10.0} works with lowercase t. But the reverse does not work.

taowen added a commit that referenced this issue Mar 24, 2018
@taowen
Copy link
Contributor

taowen commented Mar 24, 2018

I can not reproduce your problem: 4930b05

@lookfirst
Copy link
Author

Try this case as well?

ptr: (*struct {
			T float64 `json:"t"`
		})(nil),
		input: `{"T":10.0}`,

@taowen
Copy link
Contributor

taowen commented Apr 18, 2018

tried, can not reproduce

taowen added a commit that referenced this issue Apr 18, 2018
@taowen taowen closed this as completed Apr 18, 2018
zhenzou pushed a commit to zhenzou/jsoniter that referenced this issue Feb 2, 2022
zhenzou pushed a commit to zhenzou/jsoniter that referenced this issue Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants