handle malformed JSON with JSON object output, optimizations
mention changes:
v0.4
update sample to 0.4
v0.4