---
title: "JSON Formatter/Validator | iamthana"
description: "จัดรูปแบบหรือย่อ JSON และตรวจว่าถูกต้องตามมาตรฐาน พร้อมบอกบรรทัดและคอลัมน์ที่ผิด"
canonical_url: "https://iamthana.com/tools/json-formatter"
meta:
  "og:description": "จัดรูปแบบหรือย่อ JSON และตรวจว่าถูกต้องตามมาตรฐาน พร้อมบอกบรรทัดและคอลัมน์ที่ผิด"
  "og:image": "https://iamthana.com/_og/s/o_31c19d90eed7fbe8.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "JSON Formatter/Validator | iamthana"
  "twitter:image": "https://iamthana.com/_og/s/o_31c19d90eed7fbe8.png"
---

> Index of every page on this site: [llms.txt](https://iamthana.com/llms.txt)

# **JSON Formatter/Validator**

จัดรูปแบบหรือย่อ JSON และตรวจว่าถูกต้องตามมาตรฐาน พร้อมบอกบรรทัดและคอลัมน์ที่ผิด

**JSON**0 ตัวอักษร

การเยื้อง

พิมพ์หรือวางข้อความในช่องรับข้อมูล ผลลัพธ์จะขึ้นที่นี่ทันที

## **JSON มาตรฐานห้ามอะไรบ้าง**

JSON ตามมาตรฐานไม่มีคอมเมนต์ ไม่รับเครื่องหมาย , ท้ายรายการ ไม่รับเครื่องหมายคำพูดเดี่ยว และคีย์ทุกตัวต้องอยู่ในเครื่องหมายคำพูดคู่ ไฟล์ตั้งค่าบางชนิด เช่น tsconfig.json ใช้ตัวอ่านที่ผ่อนปรนกว่านี้ แต่ JSON.parse และ API ส่วนใหญ่ปฏิเสธข้อความแบบนั้น

## **ข้อผิดพลาดที่เจอบ่อย**

ที่เจอบ่อยคือ , เกินท้ายรายการ ค่า undefined หรือ NaN ที่หลุดมาจากการพิมพ์ตัวแปรออกมา และข้อความที่คัดลอกมาไม่ครบจนวงเล็บปิดขาด ตำแหน่งที่แจ้งคือจุดที่อ่านต่อไม่ได้ ซึ่งบางครั้งอยู่หลังจุดที่พิมพ์ผิดจริงเล็กน้อย

## **ตัวเลขและลำดับคีย์ไม่เปลี่ยน**

หน้านี้จัดรูปแบบจากข้อความต้นฉบับโดยตรง ตัวเลข 12345678901234567890 จึงยังเป็น 12345678901234567890 ส่วน JSON.parse กับ JSON.stringify ใน JavaScript ปัดเป็น 12345678901234567000 และเปลี่ยน 1.0 เป็น 1 กับ 1e3 เป็น 1000

คีย์เรียงตามที่เขียนไว้ รวมถึงคีย์ที่ซ้ำกัน ส่วนออบเจกต์ใน JavaScript จะดันคีย์ที่เป็นเลขจำนวนเต็มไม่ติดลบ เช่น 1 ขึ้นมาไว้หน้าคีย์อื่นและเรียงจากน้อยไปมาก

## **เครื่องมืออื่น ๆ**

- [Developer

  3f2b8c1e-9a4d-4e7b-

  8c5a-1d6f0e2b7a94<h3>**UUID Generator**</h3>

  สร้างรหัส UUID เวอร์ชัน 1, 4, 6 และ 7 ครั้งละไม่เกิน 1,000 รายการ เลือกตัวพิมพ์ใหญ่หรือตัดขีดคั่นได้](https://iamthana.com/tools/uuid-generator)
- [Developer<h3>**สร้าง QR Code ฟรี ไม่หมดอายุ (QR Code Generator)**</h3>

  สร้าง QR Code จากลิงก์หรือข้อความ ดาวน์โหลดเป็น PNG หรือ SVG ได้ฟรี รหัสเก็บข้อมูลไว้ในตัวเองจึงไม่หมดอายุ](https://iamthana.com/tools/qr-generator)
- [Developer

  \*/15 9-17 \* \* 1-5

  ทุก 15 นาที 09:00 ถึง 17:45 จันทร์ถึงศุกร์<h3>**Cron Job Generator**</h3>

  สร้างนิพจน์ cron สำหรับตั้งเวลางานอัตโนมัติ ตั้งทีละช่องหรือพิมพ์เอง พร้อมคำอธิบายเป็นภาษาไทยและรอบที่จะรันถัดไป](https://iamthana.com/tools/cron-generator)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://iamthana.com/#website","@type":"WebSite","inLanguage":"th-TH","name":"iamthana","url":"https://iamthana.com/","publisher":{"@id":"https://iamthana.com/#identity"},"workTranslation":[]},{"@id":"https://iamthana.com/tools/json-formatter#webpage","@type":"WebPage","description":"จัดรูปแบบหรือย่อ JSON และตรวจว่าถูกต้องตามมาตรฐาน พร้อมบอกบรรทัดและคอลัมน์ที่ผิด","name":"JSON Formatter/Validator","url":"https://iamthana.com/tools/json-formatter","breadcrumb":{"@id":"https://iamthana.com/tools/json-formatter#breadcrumb"},"isPartOf":{"@id":"https://iamthana.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://iamthana.com/tools/json-formatter"]}]},{"@id":"https://iamthana.com/#identity","@type":"Person","alternateName":"Thana Tingprasom","name":"iamthana","url":"https://iamthana.com","knowsAbout":["AI","SEO","Development","Homelab","Software Development","Python","Ubuntu","Docker"],"sameAs":["https://github.com/iamthana","https://www.linkedin.com/in/thana-tingprasom/","https://www.facebook.com/kttkook"]},{"@id":"https://iamthana.com/tools/json-formatter#webapplication","@type":"WebApplication","applicationCategory":"UtilityApplication","applicationSubCategory":"Developer","browserRequirements":"Requires JavaScript","description":"จัดรูปแบบหรือย่อ JSON และตรวจว่าถูกต้องตามมาตรฐาน พร้อมบอกบรรทัดและคอลัมน์ที่ผิด","inLanguage":"th-TH","isAccessibleForFree":true,"name":"JSON Formatter/Validator","operatingSystem":"Any","url":"https://iamthana.com/tools/json-formatter","author":{"@id":"https://iamthana.com/#identity"},"offers":{"@type":"Offer","price":"0","priceCurrency":"THB"}},{"@id":"https://iamthana.com/tools/json-formatter#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://iamthana.com","position":1},{"@type":"ListItem","name":"Tools","item":"https://iamthana.com/tools","position":2},{"@type":"ListItem","name":"JSON Formatter/Validator","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://iamthana.com/sitemap.md) for all pages.
