PLPayload LabJS SDK · 1.0.0
Payload Lab / Quickstart

Quickstart

A browser toolkit for inspecting JSON documents, comparing revisions and extracting values.

1. Try the interactive workspace

Open the workspace, select a sample and run an operation. Replace the sample with your own non-sensitive test input and inspect the output.

Workspace

2. Download the library

sdk.js

Save the module next to your JavaScript file. Use a module script on an existing static web server or run an .mjs entry point in a modern JavaScript runtime. Browser module imports require an HTTP(S) origin; direct file URLs may be blocked.

<script type="module" src="./main.mjs"></script>

3. Call a method

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

console.log(format('{"enabled":true}'));
Expected value
{
  "enabled": true
}

4. Handle invalid input

try {
  format('{"enabled":true}');
} catch (error) {
  console.error(error.name, error.message);
}

See the method reference for its inputs and exceptions. All calls operate locally; there is no HTTP endpoint or access token.

API reference