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

languages key is not excluded with JSON converter #162

Closed
Techbrunch opened this issue Jan 21, 2016 · 0 comments
Closed

languages key is not excluded with JSON converter #162

Techbrunch opened this issue Jan 21, 2016 · 0 comments

Comments

@Techbrunch
Copy link
Contributor

php countries.php convert -x cioc -x callingCode -x capital -x altSpellings -x region -x subregion -x demonym -x landlocked -x borders -x area -x latlng -x ccn3 -x tld -x translations -x name -x languages -x cca3 -x currency

Expected:

[{"cca2":"AW"},
{"cca2":"AF"},
{"cca2":"AO"},
{"cca2":"AI"},
{"cca2":"AX"},
{"cca2":"AL"},
{"cca2":"AD"},
{"cca2":"AE"},
{"cca2":"AR"},
{"cca2":"AM"},
{"cca2":"AS"},
{"cca2":"AQ"},
...

Result:

[{"cca2":"AW","languages":{}},
{"cca2":"AF","languages":{}},
{"cca2":"AO","languages":{}},
{"cca2":"AI","languages":{}},
{"cca2":"AX","languages":{}},
{"cca2":"AL","languages":{}},
...
mledoze added a commit that referenced this issue Jan 21, 2016
fix exclusion of the `languages` key, fixes #162
mledoze added a commit that referenced this issue Jan 21, 2016
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

1 participant