{"custpage_actionfield":"type_trigger","custpage_wf_action":"","custpage_setting_rec_id":"1","compid":"7xxx","whence":"","script":"1234","deploy":"1"}
I want to take values from this, how can i do this?
n
NElliott
02/28/2023, 11:07 AM
Looks like standard JSON with key/value pairs.
Presuming you have it as an Object you can do
myObject.custpage_wf_action for example
If it's a string you will need to JSON.parse() it first.
r
reptar
02/28/2023, 11:14 PM
First check the type using
typeof
. Assume that is an object stored as a variable called obj. Then