I'm programming an Android App for a company, and they use CiviCRM for subscribing to newsletters. The form is available to anyone online, but I have to add the form in an android app. On the android app, i use a button "Send", who should send the form as the online form. Then the form is recorded in a database using CiviCRM. In order to do that, I need to create a JSON object, and send the request using Ajax. But I have no idea of what should be the url of the ajax request, and what should be the variables I should use.
The form is composed of three parts: a select, four text inputs and two checkbox sets.