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

JSON: added root option to mapping, and root argument overload to… #2648

Merged
merged 1 commit into from
May 25, 2016

Conversation

asterite
Copy link
Member

Object.from_json. Fixes #2642

A tricky case is root + nilable + emit_null, I think I got it right (but in any case, I don't think it matters much as I'm not sure there are some cases like this in the wild)

result.to_json.should eq("{}")
end

it "parses with nilable root" do
Copy link
Contributor

@MaloJaffre MaloJaffre May 25, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line can be:

it "parses with nilable root and emit null" do

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! :-)

@asterite asterite force-pushed the feature/json_root branch 2 times, most recently from fac08c8 to 0f77d95 Compare May 25, 2016 20:51
jhass added a commit that referenced this pull request May 25, 2016
JSON: added `root` option to mapping, and `root` argument overload to…
@jhass jhass merged commit 0f77d95 into release/0.17 May 25, 2016
@jhass
Copy link
Member

jhass commented May 25, 2016

❤️

@asterite asterite deleted the feature/json_root branch May 28, 2016 22:48
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

Successfully merging this pull request may close these issues.

None yet

3 participants