mwaylabs/Espresso — pull request #90 by 4z3 (2012-05-23 10:28:33+00:00)
Title: package json-print: fail if property cannot be found

This commit fixes an issue, where `json-print` would print `undefined` thinking it's valid JSON.

# Example

$ cat file.json
{
"foo": {}
}

# old behavior
$ json-print file.json foo bar; echo $?
undefined
0

# new behavior
$ json-print file.json foo bar; echo $?
foo.json: foo.bar is undefined
23