Write data in JSON file, send JSON file from client to server, read JSON. Android - Java : i have this question for you:

I have a client/server application, the Client is an Android Java Application developed with Android Studio and and Server is a classic Java Application for PC.

Here the screens of interested parts:

Client:

[Client][1]

Server:

[Server][2]

Now i what i need is that when i click on button "RICHIEDI" in android application (client), the fields Nome and Cognome gone write on a JSON file and this JSON sent to PC Java application (server) and then the Nome and Cognome shows in the two jtextfield of the server application, how can i do it? can you help me?

  


  [1]: https://i.stack.imgur.com/ofLGY.png
  [2]: https://i.stack.imgur.com/unXi5.png