minor style fixes. Implement json option
1.2.0
1.2.1