trentm/json — Issue #23: json 2 "-a" output is wrong if requested key doesn't exist in one of the items
Author: trentm
Created: 2011-10-25 21:38:20+00:00
State: open

Get this:

```
$ echo '[{"a":1}, {"a":2, "b":3}]' | bin/json -a a
1
2
$ echo '[{"a":1}, {"a":2, "b":3}]' | bin/json -a a b
1 2 3
$ echo '[{"a":1}, {"a":2, "b":3}]' | bin/json -a a b -d,
1,2,3
```

Want this:

```
$ echo '[{"a":1}, {"a":2, "b":3}]' | bin/json -a a
1
2
$ echo '[{"a":1}, {"a":2, "b":3}]' | bin/json -a a b
1
2 3
$ echo '[{"a":1}, {"a":2, "b":3}]' | bin/json -d, -a a b
1,
2,3
```