Adding shortcut solution; uses postgres row_to_json()