Return an object json instead of a strinf for output. in pretty format