
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2022 06:21 PM
Hi All,
I am working on a code which does not fit well with our best practices (gs.setProperty()) and I was hoping if someone can guide me what code to write in place of the exiting code :
this.debug(JSON.stringify(statusList));
gs.setProperty('sn_vul.synack.vulnerability_statuses', JSON.stringify(statusList));
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2022 06:52 PM
thank you ,
I am not that good with JS, just to understand I already have a property which store the status value, would not that do it for eg 😕
this.debug(JSON.stringify(gs.getProperty('sn_vul.synack.vulnerability_statuses')));
or do I create another property to store JSON value ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2022 06:26 PM
Hello , If status list is your JSON then you can create a property with value as this JSON and the use
gs.getProperty('your property name ');
Mark my answer correct if it helps you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2022 06:43 PM
you mean :
this.debug(JSON.stringify(statusList));
gs.getProperty('sn_vul.synack.vulnerability_statuses');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2022 06:48 PM
No I meant this.debug(JSON.stringify(gs.getProperty('your property name')));
But before that you should have your JSON stored in the property value

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2022 06:52 PM
thank you ,
I am not that good with JS, just to understand I already have a property which store the status value, would not that do it for eg 😕
this.debug(JSON.stringify(gs.getProperty('sn_vul.synack.vulnerability_statuses')));
or do I create another property to store JSON value ?