I'm following the examples in https://htmx.org/headers/hx-trigger/
my view
def my_view(request):
res = render(request, 'index.html')
res.headers["HX-Trigger"] = ...
return res
this code works
res.headers["HX-Trigger"] = "showMessage"
while below code will cause error SyntaxError: JSON.parse: expected property name or '}' at line 1 column 2 of the JSON data
res.headers["HX-Trigger"] = {"showMessage": "Here Is A Message"}
What should I do?