Add Util for JSON

Provides util for decoding JSON and throwing exception on error instead of
returning false:ish.