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

18 lines
274 B
Markdown

+++
title = "json-enc"
+++
This extension encodes parameters in JSON format instead of url format.
## Install
```html
<script src="https://unpkg.com/htmx.org/dist/ext/json-enc.js"></script>
```
## Usage
```html
<div hx-post='/test' hx-ext='json-enc'>click me</div>
```