Hack: hh_client --type-as-pos --json

Summary: Because I want to implement "Jump to definition" functionality.

There are several implementations of `pos_to_json` I tried to merge them into
a single one.

Reviewed By: @joelbeales

Differential Revision: D1444642