JSON to Lua table

Client

Turn 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 TypedDictTypedDict scaffolding from sample JSON—nested shapes inferred in the browser. once JSON text parses on this page.
  • JSON → Ruby classesRuby classes with attr_accessor from sample JSON—snake_case symbols, local only. once JSON text parses on this page.
  • YAML ↔ JSONYAML to JSON and JSON to YAML online—bidirectional converter, format either side in the browser. once JSON text parses on this page.
  • JSON formatterJSON 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

Related utilities you can open in another tab—mostly client-side.