Payload Lab / Overview
Developer toolkit / JavaScript
Make structured data easier to work with.
A browser toolkit for inspecting JSON documents, comparing revisions and extracting values.
Start with the fundamentals
02
Selecting nested values
A pointer begins with a slash, except the empty pointer which denotes the entire document.
Read more →Use the JavaScript library
Install nothing: save the ES module alongside your own script and import the methods you need. The library has no external dependencies and does not contact any server.
JavaScript
import { format } from "./sdk.js";
console.log(format('{"enabled":true}'));Expected value
{
"enabled": true
}