-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add JSON InputSource to altsrc package #470
Conversation
- Implement NewJSONSource* functions for returning an InputSource from various JSON data sources. - Copy and modify YAML tests for the JSON InputSource
Is travis-ci not completing the build because the pull request is against the v2 branch? |
Hmm, I don't see why Travis didn't get or respond to the webhook for this PR. I pulled and pushed your changes just now so that we can follow https://travis-ci.org/urfave/cli/builds/141945098 for build status. Thank you for adding JSON support! Reviewing now. |
This looks good! Did you consider just unmarhaling into a Build is green: https://travis-ci.org/urfave/cli/builds/141945098 Thanks again! |
@jszwedko thanks! Yes, I actually started with reusing the When I manually updated that top level to |
Ah, interesting, I do see that behavior regarding parsing all numbers as Will merge when the builds finish. |
i'm a little confused - this looks like it was merged, but the v2 README doesn't mention JSON support at all... where did that patch go? |
Hey @anarcat, this was merged into the You are correct that it still needs to be added to the README though 😄 |
Opened #598 to backport. |
well, the reason i'm confused is that the change to the README is in this PR (see 91563b8) |
@anarcat indeed, I realized that when I went to port the feature to master. If you get a chance, would appreciate feedback on the PR (specifically if it works for your use cases!). |
various JSON data sources.