DECLARE @JSON VARCHAR(MAX)
SELECT @JSON = BulkColumn
FROM OPENROWSET
(BULK 'C:file-locationmy-data.json', SINGLE_CLOB)
AS j
SELECT *
FROM OPENJSON (@JSON, '$.data.assets.parcels')
WITH (id VARCHAR(7),
x INT,
y INT,
price INT '$.auction_price') -- new column name
)
SELECT ISJSON(@JSON)
If (ISJSON(@JSON)=1)
SELECT @JSON AS 'JSON Text'