cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass List of values from json object to SQL Query Service

Highlighted
Level 7

How to pass List of values from json object to SQL Query Service

I need to call a SQL Query service. Which Look-Likes :

select * from public.styleassociation where id in (?); 

As input I am passing Json Object (Ex:  {  "values" :  [1,2,3]}

Can anyone help me, how to extract the values in "?" place.

Tags (2)
1 REPLY

Re: How to pass List of values from json object to SQL Query Service

use JSON.parse() method to parse the values before passing it to query