How to remove the specific value from the string

Sivaprasath
Tera Contributor

Hi All,

 

I want to remove a specific value from the string. Could you please help me to removing the value from the string.

Below is the string and I want to remove the role and it's sys_id from it.

Sivaprasath_0-1667146774812.png

 

Thanks for the response in advance.

 

Regards

Sivaprasath

1 REPLY 1

OlaN
Giga Sage
Giga Sage

Hi,

You can use the delete keyword to remove a specific property from a JSON object.

Learn how to here:

https://www.w3schools.com/howto/howto_js_remove_property_object.asp