{
  "x402Version": 2,
  "id": 37841,
  "slug": "37841",
  "resource": "https://penny-army-reference-mainnet.spruceboundgranitestudio.workers.dev/v1/probes/json-merge-patch",
  "description": "Apply an RFC 7396 merge patch to supplied JSON with own-property-safe object construction; no stored data is changed.",
  "type": "http",
  "serviceName": "Penny Army Research",
  "resourceType": "Developer Tool",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xce53bde2C7a639fc5526AC006a8A7866625d1342",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "$defs": {
          "__schema0": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              },
              {
                "items": {
                  "$ref": "#/properties/output/properties/example/$defs/__schema0"
                },
                "type": "array"
              },
              {
                "additionalProperties": {
                  "$ref": "#/properties/output/properties/example/$defs/__schema0"
                },
                "propertyNames": {
                  "type": "string"
                },
                "type": "object"
              }
            ]
          }
        },
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "result": {
            "additionalProperties": false,
            "properties": {
              "value": {
                "$ref": "#/properties/output/properties/example/$defs/__schema0"
              }
            },
            "required": [
              "value"
            ],
            "type": "object"
          },
          "schema_version": {
            "const": "research-1",
            "type": "string"
          },
          "test_only": {
            "const": false,
            "type": "boolean"
          },
          "utility_id": {
            "const": "json-merge-patch",
            "type": "string"
          }
        },
        "required": [
          "schema_version",
          "utility_id",
          "test_only",
          "result"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "patch": {
              "a": null,
              "list": [
                8
              ],
              "nested": {
                "new": 4,
                "old": null
              }
            },
            "target": {
              "a": 1,
              "list": [
                1,
                2
              ],
              "nested": {
                "keep": 3,
                "old": 2
              }
            }
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "result": {
              "value": {
                "list": [
                  8
                ],
                "nested": {
                  "keep": 3,
                  "new": 4
                }
              }
            },
            "schema_version": "research-1",
            "test_only": false,
            "utility_id": "json-merge-patch"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "$defs": {
                  "__schema0": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      },
                      {
                        "items": {
                          "$ref": "#/properties/input/properties/body/$defs/__schema0"
                        },
                        "type": "array"
                      },
                      {
                        "additionalProperties": {
                          "$ref": "#/properties/input/properties/body/$defs/__schema0"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      }
                    ]
                  }
                },
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "additionalProperties": false,
                "properties": {
                  "patch": {
                    "$ref": "#/properties/input/properties/body/$defs/__schema0"
                  },
                  "target": {
                    "$ref": "#/properties/input/properties/body/$defs/__schema0"
                  }
                },
                "required": [
                  "target",
                  "patch"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "$defs": {
                  "__schema0": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      },
                      {
                        "items": {
                          "$ref": "#/properties/output/properties/example/$defs/__schema0"
                        },
                        "type": "array"
                      },
                      {
                        "additionalProperties": {
                          "$ref": "#/properties/output/properties/example/$defs/__schema0"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      }
                    ]
                  }
                },
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "additionalProperties": false,
                "properties": {
                  "result": {
                    "additionalProperties": false,
                    "properties": {
                      "value": {
                        "$ref": "#/properties/output/properties/example/$defs/__schema0"
                      }
                    },
                    "required": [
                      "value"
                    ],
                    "type": "object"
                  },
                  "schema_version": {
                    "const": "research-1",
                    "type": "string"
                  },
                  "test_only": {
                    "const": false,
                    "type": "boolean"
                  },
                  "utility_id": {
                    "const": "json-merge-patch",
                    "type": "string"
                  }
                },
                "required": [
                  "schema_version",
                  "utility_id",
                  "test_only",
                  "result"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "payment-identifier": {
      "info": {
        "required": false
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "maxLength": 128,
            "minLength": 16,
            "pattern": "^[a-zA-Z0-9_-]+$",
            "type": "string"
          },
          "required": {
            "type": "boolean"
          }
        },
        "required": [
          "required"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "structured",
    "json-merge-patch",
    "bazaar",
    "payment-identifier"
  ],
  "sourceHost": "penny-army-reference-mainnet.spruceboundgranitestudio.workers.dev",
  "lastUpdated": "2026-10-08T00:15:06.48Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T00:15:05.81Z"
  },
  "metadata": {
    "serviceName": "Penny Army Research",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "patch": {
                "a": null,
                "list": [
                  8
                ],
                "nested": {
                  "new": 4,
                  "old": null
                }
              },
              "target": {
                "a": 1,
                "list": [
                  1,
                  2
                ],
                "nested": {
                  "keep": 3,
                  "old": 2
                }
              }
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "result": {
                "value": {
                  "list": [
                    8
                  ],
                  "nested": {
                    "keep": 3,
                    "new": 4
                  }
                }
              },
              "schema_version": "research-1",
              "test_only": false,
              "utility_id": "json-merge-patch"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "$defs": {
                    "__schema0": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        },
                        {
                          "items": {
                            "$ref": "#/properties/input/properties/body/$defs/__schema0"
                          },
                          "type": "array"
                        },
                        {
                          "additionalProperties": {
                            "$ref": "#/properties/input/properties/body/$defs/__schema0"
                          },
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "additionalProperties": false,
                  "properties": {
                    "patch": {
                      "$ref": "#/properties/input/properties/body/$defs/__schema0"
                    },
                    "target": {
                      "$ref": "#/properties/input/properties/body/$defs/__schema0"
                    }
                  },
                  "required": [
                    "target",
                    "patch"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "$defs": {
                    "__schema0": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "null"
                        },
                        {
                          "items": {
                            "$ref": "#/properties/output/properties/example/$defs/__schema0"
                          },
                          "type": "array"
                        },
                        {
                          "additionalProperties": {
                            "$ref": "#/properties/output/properties/example/$defs/__schema0"
                          },
                          "propertyNames": {
                            "type": "string"
                          },
                          "type": "object"
                        }
                      ]
                    }
                  },
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "additionalProperties": false,
                  "properties": {
                    "result": {
                      "additionalProperties": false,
                      "properties": {
                        "value": {
                          "$ref": "#/properties/output/properties/example/$defs/__schema0"
                        }
                      },
                      "required": [
                        "value"
                      ],
                      "type": "object"
                    },
                    "schema_version": {
                      "const": "research-1",
                      "type": "string"
                    },
                    "test_only": {
                      "const": false,
                      "type": "boolean"
                    },
                    "utility_id": {
                      "const": "json-merge-patch",
                      "type": "string"
                    }
                  },
                  "required": [
                    "schema_version",
                    "utility_id",
                    "test_only",
                    "result"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "payment-identifier": {
        "info": {
          "required": false
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "id": {
              "maxLength": 128,
              "minLength": 16,
              "pattern": "^[a-zA-Z0-9_-]+$",
              "type": "string"
            },
            "required": {
              "type": "boolean"
            }
          },
          "required": [
            "required"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "penny-army-reference-mainnet.spruceboundgranitestudio.workers.dev",
    "manifest_name": "penny-army-reference-mainnet.spruceboundgranitestudio.workers.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "result": {
        "value": null
      },
      "schema_version": "string",
      "test_only": true,
      "utility_id": "string"
    },
    "type": "string"
  }
}