I am using the FOR JSON method to extract the table data in JSON format but it exports every thing in one single row. Instead, I want to have a JSON line per record, I tried using FOR JSON PATH but that doesn't work,
Below is the sample of what I am trying to do, can't paste the whole query due to privacy reasons. Please guide me if anyone has come across the same scenario
SELECT
orderId,
customerid
FROM
T
FOR JSON PATH