I have a python script file that returns a json
{"message": "Login or password is empty", "success": 0}
I want to go to this url in html and dislpay "Login or password is empty" and also save the success int to be used later for pass fail verification.
I have no idea how to get the json parsed so that I can use it in html.
This is my html
<h2> Login</h2>
<form action="http://test.com/cgi-bin/login.py" method="POST" target="hiddenFrame2">
Username:<br>
<input type="text" name="username">
<br>
Password:<br>
<input type="password" name="password">
<br>
<br>
<input type="submit" value="Submit">
<br>
<iframe src="about:blank" frameborder="0" width="100" height="50" scrolling="no" name="hiddenFrame2" class="hide"></iframe>
<br>
<br>
</form>