Function 'toJsonFormat'. Allow 'id' field as a column