Answer the question
In order to leave comments, you need to log in
how to get json from html form?
There is a form on the page
<form action="/post" method="post">
<input name="email">
<input name="name">
<button type="submit">отправить</button>
</form>
data = json.loads(request.body.decode())
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question