Trasformazione del codice

How do I transform this code into blocks and configure it in json?
Quando btnLogin.Cliccato
Imposta Web1.Url a "Error"
Imposta Web1.PostText a
unisci testo:
- {"action": "login", "username":
- txtUsername.Text
- ", "password":
- txtPassword.Text
- "}"
Chiamare Web1.PostText

Something like this: