Lcg/json opts

Correctly chains json options through the encoder so that pretty printing works again in Chef.
leftover debug?