การใช้ ตัวสร้าง JSON โค้ด QR ในเวิร์กโฟลว์จริง
ขั้นนี้อยู่ตรงไหนในไปป์ไลน์จริง: อะไรป้อนเข้า อะไรใช้ผลลัพธ์ และต้องตรวจอะไรก่อนไปต่อ
วิธีใช้
- รวบรวมค่าดิบจากแหล่งที่มา — การตอบกลับ API ไฟล์คอนฟิก บรรทัดล็อก หรือการส่งออกฐานข้อมูล
- ประมวลผลผ่านเครื่องมือแล้วจดค่าตัวเลือกที่ใช้ให้แน่ชัด เพื่อให้ขั้นนี้ทำซ้ำได้
- วางผลลัพธ์ไปยังขั้นถัดไปของไปป์ไลน์ (ส่วนหัวคำขอ ไฟล์ manifest ค่าคงที่ในสคริปต์)
- บันทึกทั้งอินพุตและเอาต์พุตไว้ด้วยกัน หากขั้นถัดไปล้มเหลวจะรู้ว่าฝั่งไหนพัง
ตัวอย่าง
The JSON is validated and minified first, so the payload occupies the fewest possible modules.
ข้อมูลเข้า
{"name":"26173","tools":["qr","base64"],"count":22}
ข้อมูลออก — ผลลัพธ์
<div class="qr-out">
<div class="qr-preview"><img src="data:image/png;base64,iVBORw0KGgo=" alt="QR code" width="256" height="256" style="max-width:100%;height:auto;image-rendering:pixelated"></div>
<div class="qr-meta">
<table class="tb-table"><tbody>
<tr><th>Detected type</th><td>JSON</td></tr>
<tr><th>Version</th><td>4 (33×33 modules)</td></tr>
<tr><th>Error correction</th><td>M</td></tr>
<tr><th>Quiet zone</th><td>4 module(s)</td></tr>
<tr><th>Payload size</th><td>51 bytes (UTF-8)</td></tr>
<tr><th>Contrast</th><td>21.00:1</td></tr>
<tr><th>Validation</th><td class="ok">VALID</td></tr>
<tr><th>Render → decode self-test</th><td class="bad">FAILED (decoded ≠ payload)</td></tr>
</tbody></table>
</div>
</div>
<div class="qr-payload"><strong>Payload</strong><pre class="ex-io">{"name":"26173","tools":["qr","base64"],"count":22}</pre></div>
<div class="tb-btns qr-actions">
<button class="btn btn-primary" data-qr-dl="png">Download PNG</button>
<button class="btn" data-qr-dl="svg">Download SVG</button>
<button class="btn" data-qr-copy="payload">Copy payload</button>
<button class="btn" data-qr-copy="svg">Copy SVG</button>
<button class="btn" data-qr-copy="image">Copy image</button>
<button class="btn" data-qr-print>Print</button>
</div>
<p class="ex-note">Generated and verified entirely in your browser. No data is uploaded.</p>
รัน
คำอธิบาย
Validate and minify JSON before encoding it, so the payload fits in the smallest possible QR version.
เครื่องมือที่เกี่ยวข้อง
ตัวสร้างโค้ด QRCreate QR codes for text, URLs, Wi-Fi, vCard, email, phone, SMS, geo, calendar, WhatsApp, Telegram, Bitcoin, Ethereum, UPI and JSON, with error correction, quiet zone, colours and PNG/SVG export.ตัวสร้าง URL โค้ด QRTurn any link into a scannable QR code, adding https:// when the scheme is missing and warning about unsafe schemes.ตัวสร้าง Wi-Fi โค้ด QRBuild a standards-compliant WIFI: payload with SSID, password, WPA/WEP/open encryption and hidden-network flag so phones join the network on scan.ตัวสร้าง vCard โค้ด QRGenerate a vCard 3.0 contact QR code with name, organisation, title, phone, email, website, address and note.ตัวสร้าง MECARD โค้ด QRBuild a MECARD contact payload — the compact alternative to vCard that fits in a smaller, lower-version QR symbol.ตัวสร้างความลับโค้ด QRCreate a mailto: QR code with prefilled recipient, subject and body.