Skip to content

Fix JSON namespace/class ambiguity#65

Merged
caseypugh merged 3 commits intovimeo:masterfrom
michaelboccara:feature/fix_issue_51
Jan 2, 2019
Merged

Fix JSON namespace/class ambiguity#65
caseypugh merged 3 commits intovimeo:masterfrom
michaelboccara:feature/fix_issue_51

Conversation

@michaelboccara
Copy link
Copy Markdown
Contributor

A suggested fix for issue #51 , to remove ambiguity conflict with a JSON library like Matt Shoen's: don't use the overloaded JSON symbol, and instead use directly the JSONNode class:

JSONNode node = JSONNode.Parse(jsonString);
feels better than:
JSONNode node = JSON.Parse(jsonString);

… Matt Shoen,s: don't use the overloaded JSON symbol, and use a more explicit JSONNode class reference

JSONNode node = JSONNode.Parse(jsonString);
makes more sense than:
JSONNode node = JSON.Parse(jsonString);
@caseypugh caseypugh added this to the 0.9.5 milestone Jan 2, 2019
@caseypugh caseypugh self-requested a review January 2, 2019 19:46
Copy link
Copy Markdown
Contributor

@caseypugh caseypugh left a comment

Choose a reason for hiding this comment

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

This looks great, thanks!

@caseypugh caseypugh merged commit fb5a386 into vimeo:master Jan 2, 2019
This was referenced Jan 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants