Possible Duplicate:
How to send a JSON object over Request with Android?
I need a simple Android function that sends a JSON object to an IP address that is saved in the preferences of the phone. Now, I know how to use prefs, I know how JSON works (theoretically), but I don't know how to actually send it to the server.
Note that, in this case, I don't actually care about security, encryption or anything else, just sending a simple JSON object with simple data such as "name", "latitude", "longitude", "time", "password".