JSON to Lua table
ClientTurn JSON into a Lua table literal with sensible key syntax—handy for config snippets, Redis Lua scripts, and Neovim/love2d data tables.
Nearby workflows on Toolcore
- JSON → Python TypedDict — TypedDict scaffolding from sample JSON—nested shapes inferred in the browser. once JSON text parses on this page.
- JSON → Ruby classes — Ruby classes with attr_accessor from sample JSON—snake_case symbols, local only. once JSON text parses on this page.
- YAML ↔ JSON — YAML to JSON and JSON to YAML online—bidirectional converter, format either side in the browser. once JSON text parses on this page.
- JSON formatter — JSON format online: pretty-print, minify, validate, escape, download . once JSON text parses on this page.
Common use cases
- Seed Lua game configs from JSON exported by a level editor.
- Paste API fixtures into a Redis Lua script as a local table.
Common mistakes to avoid
Using JSON null semantics in Lua
JSON null becomes Lua nil—confirm your script handles missing keys.
FAQ
Are arrays 0-based?
Lua tables use 1-based array indices in the generated output.
Common search terms
Phrases people search for that match this tool. See the full long-tail keyword index.
- json to lua table
- convert json to lua online
- lua config from json
More tools
Related utilities you can open in another tab—mostly client-side.
JSON → Python TypedDict
ClientTypedDict scaffolding from sample JSON—nested shapes inferred in the browser.
JSON → Ruby classes
ClientRuby classes with attr_accessor from sample JSON—snake_case symbols, local only.
YAML ↔ JSON
ClientYAML to JSON and JSON to YAML online—bidirectional converter, format either side in the browser.
JSON formatter
ClientJSON format online: pretty-print, minify, validate, escape, download .json.