Consider tableA which has column row_added_dttm of type timestamp without timezone. The actual value is 2017-08-31 18:34:42.813175.
After I executed the below query, it results in a timestamp with timezone like {"crt_dttm":"2017-08-31T18:34:42.813175"}.
select row_to_json(t) from (select row_added_dttm from tableA limit 1) as t;
But the format which I require is something like 2017-08-31T18:34:42.813Z. I am not sure how to generate that, please help. Using row_to_json is required.