add no-pretty output option, better message for invalid json

add on the fly parameters override ability