Updating user information with new email and preferences
{
"id": 123,
"name": "John Doe",
"email": "john@example.com",
"age": 25,
"preferences": {
"theme": "light",
"notifications": true
}
}
{
"id": 123,
"name": "John Smith",
"email": "john.smith@example.com",
"age": 26,
"preferences": {
"theme": "dark",
"notifications": true,
"language": "en"
}
}
Click to open the main tool with this data pre-loaded.
See the generated JSON Patch instantly!
Adding items and applying discounts to a shopping cart
{
"items": [
{
"id": "item1",
"name": "Laptop",
"price": 999
},
{
"id": "item2",
"name": "Mouse",
"price": 25
}
],
"total": 1024,
"discount": 0
}
{
"items": [
{
"id": "item1",
"name": "Laptop",
"price": 999
},
{
"id": "item2",
"name": "Mouse",
"price": 25
},
{
"id": "item3",
"name": "Keyboard",
"price": 75
}
],
"total": 1099,
"discount": 10
}
Click to open the main tool with this data pre-loaded.
See the generated JSON Patch instantly!
Updating application configuration for production deployment
{
"database": {
"host": "localhost",
"port": 5432,
"ssl": false
},
"cache": {
"enabled": true,
"ttl": 3600
},
"features": [
"auth",
"logging"
]
}
{
"database": {
"host": "prod-db.company.com",
"port": 5432,
"ssl": true,
"pool_size": 20
},
"cache": {
"enabled": true,
"ttl": 7200
},
"features": [
"auth",
"logging",
"analytics"
]
}
Click to open the main tool with this data pre-loaded.
See the generated JSON Patch instantly!
Want to create your own JSON patches with our online tool?
🚀 Open JSON Patch Online Tool