Json macro correction + Json.prettyPrint

- Corrected Json macro for companion objects and for single-field caseclass
- Added Json.prettyPrint to print Json in pretty format