json
import jsonSandboxed JSON file loading for asset pack scripts. Available in any script that belongs to a specific pack — Data.rl, Main.rl, and a Script component loaded via scriptAsset — but not in a Script component’s inline scriptInline source, which has no owning pack to resolve paths against. Paths are relative to that pack’s root and cannot escape it.
| Function | Description |
|---|---|
json.load(path) | Load and parse a JSON file from the asset pack, relative to the pack root. Throws if the path is absolute or outside the pack |
© 2026 Giraffe Lab LLC. All rights reserved.