Since ou haven't shown your full json request, let's consider you have following json:-
{
"Industry": ["111","ggh","ooo",888],
"Phone": null,
"Id": null,
"type": "Account",
"Name": "Manufacturing"
}
So here is how ou can extract each comma separate value and insert it into db:-
<http:listener-config name="HTTP_Listener_Configuration" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>
<flow name="TestFlow" >
<http:listener config-ref="HTTP_Listener_Configuration" path="/test" doc:name="HTTP"/>
<json:json-to-object-transformer returnClass="java.lang.Object" doc:name="JSON to Object"/>
<logger level="INFO" doc:name="Logger" message="#[payload.Industry]"/>
<foreach doc:name="For Each" collection="#[payload.Industry]">
<logger message="Each extracted value :#[payload]" level="INFO" doc:name="Logger"/>
<!-- Your Database insert code here inserting each value with #[payload] -->
</foreach>
<json:object-to-json-transformer doc:name="Object to JSON"/>
</flow>
You can modify this above code and use it to insert into db.
pls note inside for loop #[payload]
has extracted comma separated value. You can put it into a variable if you want and use it instead of writting #[payload]
UPDATE:
As per you question, I have updated your query:-
<foreach doc:name="For Each" collection="#[payload.LineID]">
<db:insert config-ref="Oracle_Configuration" doc:name="Database">
<db:parameterized-query><![CDATA[INSERT INTO HDR_TABLE (ID,LINE_ID) VALUES(LINE_SEQ.NEXTVAL,#[payload])]]></db:parameterized-query>
</db:insert>