function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
chaithaly gowdachaithaly gowda 

How to load the array contents of JSON property on separate lines to a field

Hi

I have a JSON request with following format 
"property":["abc",xyz"]
I have a requirement to store this property contents into a field with separate lines.

Can someone please help me with this.

Thanks
Chaithaly.
ravi soniravi soni
hi Chaithaly,
try following dummy code.
var obj = {
"property":["abc","xyz"]
};
var storePValue = [];
for(var i=0; i<obj.property.length; i++){
console.log('obj.property==>' + obj.property[i]);
storePValue.push(obj.property[i]);
}
console.log('storePValue===> ' + storePValue);

let me know if it help you and making it as solved.
Thank you.