Request ModifyJSON Deep Merge• 5 min read

How to Modify Outgoing Request Payloads Using JSON Deep Merge

Summary: Inject test flags, override user IDs, or mutate nested parameters in outgoing POST and PUT bodies while preserving all other original fields.

Why This Rule Matters for Developers & QA

Testing edge-case payloads usually requires complex test harnesses or code instrumentation. JSON deep merge allows QA engineers to inject edge-case values right before transmission.

Step-by-Step Implementation Guide

1

Target the Outbound API Endpoint

Specify the matching URL for your mutation (e.g. `*/api/v2/checkout`).

2

Provide JSON Merge Patch

Define the partial JSON containing the keys you want to inject or override. Nested fields are merged recursively.

3

Execute Request from App

Trigger the action in your web or TV app. The payload arrives at your backend with the injected fields merged in.

Configuration Snippet

How to Modify Outgoing Request Payloads Using JSON Deep Merge — proxyceptor-rule.json
JSON
{
"id": "rule_inject_beta_flag",
"pattern": "*/api/v2/checkout*",
"action": "modify-request-body",
"payloadMerge": {
"features": {
"experimental_checkout": true,
"promo_tier": "VIP_DISCOUNT_100"
}
},
"enabled": true
}

Frequently Asked Questions

Explore More Debugging Guides

Redirect / Rewrite
URL Modify & Redirect
4 min read
Inject Headers
Request Header Modify
4 min read
Full Mock Body
Response Replace & Mock Body
5 min read