Dùng Bộ tạo JSON mã QR trong quy trình thực tế
Bước này nằm ở đâu trong một quy trình thực tế: đầu vào từ đâu, đầu ra được dùng thế nào, và cần kiểm tra gì trước khi tiếp tục.
Cách dùng
- Lấy giá trị thô từ nguồn của nó — phản hồi API, tệp cấu hình, dòng log hoặc bản xuất cơ sở dữ liệu.
- Đưa qua công cụ và ghi lại chính xác các giá trị tùy chọn để bước này tái lập được.
- Dán đầu ra vào giai đoạn kế tiếp của quy trình (header yêu cầu, manifest, hằng số trong script).
- Ghi lại cả đầu vào và đầu ra; nếu giai đoạn sau lỗi, bạn biết phía nào hỏng.
Ví dụ
The JSON is validated and minified first, so the payload occupies the fewest possible modules.
Đầu vào
{"name":"26173","tools":["qr","base64"],"count":22}
Đầu ra — Kết quả
<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>
Chạy
Mô tả
Validate and minify JSON before encoding it, so the payload fits in the smallest possible QR version.
Công cụ liên quan
Bộ tạo mã 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.Bộ tạo URL mã QRTurn any link into a scannable QR code, adding https:// when the scheme is missing and warning about unsafe schemes.Bộ tạo Wi-Fi mã QRBuild a standards-compliant WIFI: payload with SSID, password, WPA/WEP/open encryption and hidden-network flag so phones join the network on scan.Bộ tạo vCard mã QRGenerate a vCard 3.0 contact QR code with name, organisation, title, phone, email, website, address and note.Bộ tạo MECARD mã QRBuild a MECARD contact payload — the compact alternative to vCard that fits in a smaller, lower-version QR symbol.Bộ tạo bí mật mã QRCreate a mailto: QR code with prefilled recipient, subject and body.