yq can be called as a module if needed. With -y/-Y, files can be edited in place like with sed -i: Because YAML treats JSON as a dialect of YAML, you can use yq to convert JSON to YAML: yq -y . < ...
The hx-post and hx-swap attributes tell htmx: "When a user clicks on this button, issue an AJAX request to /clicked, and replace the entire button with the response" At this point you can modify ...