Hi @Ronald Van Der Westhuizen ,
Thank you so much for posting here.
You could firstly import the JSON data into SQL Server table like below:
create table Customer
(
CustomerNumber int,
CustomerTag int,
PurchaseTypeIndicator decimal(18,1),
Result varchar(20)
)
DECLARE @json nvarchar(max)=N'{"Customer":[{"CustomerNumber":122224,"CustomerTag":6111112,"PurchaseTypeIndicator":38.0,"Result":"High"}]}';
insert into Customer
SELECT JSON_VALUE(@json, '$.Customer[0].CustomerNumber') CustomerNumber
,JSON_VALUE(@json, '$.Customer[0].CustomerTag') CustomerTag
,JSON_VALUE(@json, '$.Customer[0].PurchaseTypeIndicator') PurchaseTypeIndicator
,JSON_VALUE(@json, '$.Customer[0].Result') Result
select * from Customer
Output:
CustomerNumber CustomerTag PurchaseTypeIndicator Result
122224 6111112 38.0 High
Then you could refer below and check whether any of them is helpful.
Generate JSON Data Using Web Service And SQL Server Stored Procedure
Can you call a webservice from TSQL code?
In addition, you could also try with a high level to send data to a web service API by using SSIS.
Reference:
How to pass values to a Web Service from SSIS Script task?
Consume Webservice via SSIS Script Component
Best regards
Melissa
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Hot issues November--What can I do if my transaction log is full?
Hot issues November--How to convert Profiler trace into a SQL Server table