79699245

Date: 2025-07-12 12:00:11
Score: 1
Natty:
Report link

Using Copy Activity's advanced editor you can map the JSON value to their DB field as shown below

copyactivity mapping

It will load the data as belowdataloaded

Now you can apply the JSON_VALUE() function to parse the Userjson using below query


SELECT 
[id],body,postid,likes
,JSON_VALUE(userjson,'$.id') AS UserID
,JSON_VALUE(userjson,'$.username') AS UserName
,JSON_VALUE(userjson,'$.fullName') AS fullName
FROM [dbo].[TestJson] as t

It will give the below result

result

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: SQL006