htmx/www/content/extensions/json-enc.md
2023-03-18 11:29:38 -04:00

274 B

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

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

Install

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

Usage

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