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

RedditAccount contains incorrect values after call to meJson() #16

Open
JamesGold23 opened this issue Jun 11, 2014 · 1 comment
Open

Comments

@JamesGold23
Copy link
Contributor

I used my own account to test this method. The RedditAccount:

RedditAccount [commentKarma=0, created=1316419867, createdUtc=0, hasMail=null, hasModMail=null, id=5vx5s, linkKarma=0, name=JamesGold, over18=false]

Several of these values are incorrect. However, the HTTP response body contained the correct values, so something is going wrong with the JSON parsing of the body.

@corydissinger
Copy link
Owner

Good catch. Please pull down the latest commit and verify the values are now being set.

The issue was indeed in the JSON parsing, I failed to notice that the JSON response had _ (underscores) and needed to use Jackson's @JsonProperty annotation to map them.

After you get back to me I'll close the issue.

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