To send multiple data parameters with jQuery's $.ajax() function in PHP, you can use the data option and set it to an object with the data you want to send.
jQuery:
Read this tutorial and learn useful information about the jQuery function that waits and then executes the function when all the ajax requests resolve.
The @JsonProperty annotation is used to specify the property name in a JSON object when serializing or deserializing a Java object using the Jackson library.