PLPayload LabJS SDK · 1.0.0
Payload Lab / Reviewing payload changes

Reviewing payload changes

Compare parsed documents rather than whitespace. Object key ordering is ignored, array positions remain significant. Changed paths identify differences in values or membership, not a patch that can be applied automatically.

Working example

JavaScript
import { compare } from "./sdk.js";

console.log(compare('{"a":1}', '{"a":2}'));
Expected value
[
  "/a"
]

When input is invalid

SyntaxError: malformed JSON

Run the example in the local playground before integrating it.
Examples API reference