Skip to content
jsonforge.app

JSON Editor

Build and edit JSON visually — add keys, change types, rename fields — no raw syntax.

Masukan JSON

Loading editor…

Editor visual

{0}

Apa itu JSON Editor?

A visual JSON editor lets you build and modify a JSON document by clicking buttons and filling in fields — renaming a key, changing a value's type, adding a new property, or deleting an item — instead of hand-editing raw text and hoping you don't break a bracket or forget a comma somewhere. It's a different tool from a text-based JSON editor (like the JSON Formatter's editor): every key has its own rename field, every value has a type selector that switches between string/number/boolean/null/object/array and resets to a sensible default for that type, and every object or array has an inline "add key" or "add item" row. A live, read-only preview on the side always shows the exact JSON text your visual edits produce, so you can copy it out the moment it looks right.

Cara menggunakan JSON Editor

  1. Paste existing JSON into the import box at the top and click "Load into editor" — or click "Load sample" to start from a worked example.
  2. Edit the tree on the left: type into a value field, use the type dropdown to change a value's type, rename a key by editing its name field, or click the trash icon to delete a key/item.
  3. Use the "Add key" / "Add item" row at the bottom of any object or array to insert a new entry.
  4. Watch the live preview on the right update instantly, then copy the result once you're happy with it.

Contoh

Changing a value's type

Masukan

{"active": "true"}

Keluaran

Switch the type dropdown from string to boolean → {"active": true}

Adding a new key to an object

Masukan

{"name": "Ada"}

Keluaran

Add key "born" (number) → {"name": "Ada", "born": 1815}

Kesalahan umum

  • Forgetting that changing a value's type resets it to that type's default — copy the value out first if you'll need to reference the old one.
  • Trying to rename a key to a name that's already used by a sibling key — this is blocked rather than silently overwriting the other key's value.
  • Expecting the import box to stay in sync with your visual edits — it's only a one-way "load into editor" seed, not a live mirror (use the read-only preview panel for that).

Mengapa menggunakan alat ini

  • Runs entirely in your browser — no document you build or edit is ever sent to a server.
  • Removes an entire class of hand-editing mistakes (trailing commas, mismatched brackets, unquoted keys) since you're never typing raw JSON syntax.
  • The type dropdown makes it easy to fix a common API-integration annoyance — a value came back as the string "true" or "42" instead of an actual boolean or number.

Pertanyaan yang sering diajukan