ޚުލާސާ: JSON އަކީ ވެބުގެ ޑޭޓާ އެކްސްޗޭންޖް ފޯމެޓެވެ. ފޯމެޓަރު ވަރަށް ނުރަނގަޅު ޕޭލޯޑް ކިޔުމަށް ފަސޭހަކުރުންތައް، ސިންޓެކްސް މައްސަލަ ހޯދުންތައް، API، ކޮންފިގް އަދި ލޮގް އަށް ޑޭޓާ ތައްޔާރުކުރުން ކުރެއެވެ.
1) JSON އަކީ ކޮބައި
JSON (JavaScript Object Notation) އަކީ ސްޓްރަކްޗަރޑް ޑޭޓާ ސޭވްކުރުމާއި ފޮނުވުމަށް ޓެކްސްޓް ފޯމެޓެވެ. API، ކޮންފިގް، ލޮގް އަދި webhook ހުރިހާ ދުވަހަކުވެސް މިއަށް ބަރޯސާވެއެވެ.
2) JSON ފޯމެޓަރު ކީއްވެ ބޭނުންވާނެ
- Readability. API responses often arrive as one long line.
- Error finding. A trailing comma or missing brace breaks parsing.
- Debugging. Easier to inspect fields before sending a request.
- Sharing. Pretty JSON is easier to paste into docs and chats.
- Minifying. Sometimes you need a compact payload.
3) ފޯމެޓް، މިނިފައި އަދި ވެލިޑޭޓް
- Format — add indentation for humans.
- Minify — compress into one line.
- Validate — check syntax without rewriting.
ފޯމެޓަރު ޑޭޓާގެ މާނަ ރަނގަޅުކުރުން ނުކުރާ — ހަމައެކަނި ސިންޓެކްސް.
4) އާންމު މައްސަލަ
- Trailing commas:
{"a":1,} - Single quotes:
{'a':1} - Unquoted keys:
{a:1} - Comments inside JSON
- Mixing JSON with JS objects or YAML
5) Serpmonn ފޯމެޓަރު ކިހާހަށް ބޭނުންކުރޭ
- Open the JSON formatter tool.
- Paste JSON into the input.
- Click Format, Minify or Validate.
- Copy the result.
JSON ފޯމެޓަރު ހުޅުވާ:
6) FAQ
Is it safe to paste sensitive data?
Processing happens in your browser. Still avoid pasting passwords unless necessary.
How is this different from editor beautify?
Same idea — useful when you need a quick check without opening an IDE.
Can I edit JSON in the field?
Yes. After edits, click Validate or Format again.