Spot duplicate keys with our new JSON formatter and validator
A shipping webhook arrives, and your debugger shows the parcel as shipped. Did the sender also include an earlier status? Our new JSON formatter and validator lets you inspect the original response. Paste the text or open a local JSON file. The contents stay in your browser.
Try this delivery event:
{"parcel":{"id":9007199254740993,"status":"packed","status":"shipped"}}
JavaScript’s JSON.parse() keeps only the second status. By the time you expand the object in a debugger, packed has disappeared. The formatter shows both entries and flags the second key. That’s the detail to send the API maintainer: the same parcel arrived with two statuses in one object.
There’s another easy-to-miss detail in that event. JavaScript rounds the numeric parcel ID to 9007199254740992. In the formatter’s explorer, follow /parcel/id and copy the value. The final digit is still 3, so you can look up the right parcel.
For a signed webhook, keep the original body alongside any formatted copy. Our guide to verifying webhooks in Node.js shows why even a change in whitespace matters when you check a signature.