Skip to content

JSON ​

The JSON API is a subset of Playdate's JSON API.

Functions ​

json.decode(json: string) ​

Decodes a JSON string into a Lua table.

json.encode(data: table) ​

Encodes a Lua table into a JSON string.

json.encodePretty(data: table) ​

Encodes a Lua table into a JSON string, with human-readble formatting.

This project is not affiliated with Scratch, the Scratch Team, or any of the supported platforms' parent companies or organizations.