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

Support for iterating across (-a) empty objects/arrays. Fixed issue with nested iterations. #20

Merged
merged 1 commit into from Sep 1, 2013

Conversation

fschopp
Copy link

@fschopp fschopp commented May 25, 2013

Changes:

  • Added support for iterating across (-a) empty objects/arrays. Previously:
$ echo '[]' | jshon -a -t
parse error: bad json on arg 1, "-a"

Now produces no output, as expected.

  • Fixed bug that would occur with nested iterations. Previously:
$ echo '{"a":[1,2],"b":["3","4"]}' | jshon -a -a -t
number
number
string
string
parse error: bad json on arg 1, "-a"

Now:

$ echo '{"a":[1,2],"b":["3","4"]}' | ./jshon -a -a -t
number
number
string
string

keenerd added a commit that referenced this pull request Sep 1, 2013
Fixed -a on empty objects/arrays. Fixed issue with nested -a.
@keenerd keenerd merged commit 77ec9a1 into keenerd:master Sep 1, 2013
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

2 participants