@http-forge/core 0.2.10 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -217,6 +217,14 @@ const data = pm.response.json();
217
217
  pm.environment.set('userId', data.id);
218
218
  pm.environment.set('authToken', data.token);
219
219
 
220
+ // Store non-string values (auto-serialized)
221
+ pm.environment.set('userList', data.users); // Array → JSON string
222
+ pm.environment.set('config', { retries: 3 }); // Object → JSON string
223
+
224
+ // get() auto-deserializes back
225
+ const users = pm.environment.get('userList'); // → Array
226
+ const config = pm.environment.get('config'); // → Object
227
+
220
228
  // Store cookies from response
221
229
  if (pm.response.headers.has('Set-Cookie')) {
222
230
  pm.cookies.set('authCookie', data.authCookie);