Check to make sure the object is callable.

Update: Also add support for -l, which lists keys.
Output should always be JSON.