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.

Đầu vào Bộ tạo JSON mã QR Đầu ra Chạy 100% trên trình duyệt — dữ liệu không rời khỏi thiết bị.
Bộ tạo JSON mã QR — Đầu vào → Đầu ra. Chạy 100% trên trình duyệt — dữ liệu không rời khỏi thiết bị.

Cách dùng

  1. 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.
  2. Đư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.
  3. 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).
  4. 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.
Cách dùng · Bộ tạo JSON mã QR 1 Dán dữ liệu vào ô nhập(hoặc nạp ví dụ). 2 Chỉnh tùy chọn theođịnh dạng mong muốn. 3 Sao chép, tải hoặc xemkết quả — cập nhật khibạn gõ.
Cách dùng — 3

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">{&quot;name&quot;:&quot;26173&quot;,&quot;tools&quot;:[&quot;qr&quot;,&quot;base64&quot;],&quot;count&quot;: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.

Bộ tạo JSON mã QR → · Cách dùng → · qr →

Công cụ liên quan