htmx/www/content/extensions/json-enc.md
2024-04-17 10:48:55 -06:00

281 B

+++ title = "json-enc" +++

This extension encodes parameters in JSON format instead of url format.

Install

<script src="https://unpkg.com/htmx.org@1.9.12/dist/ext/json-enc.js"></script>

Usage

<div hx-post='/test' hx-ext='json-enc'>click me</div>