Added attempt_parse_json.

Handles whether or not we should try to parse the JSON. If it's
a binary, and a printable, non-empty list we want to try.