It would probably not be a good idea to include it in GET, as url parameters have a limit of 256 characters. It would be better if you used POST and put JSON in the body, and after that you can parse it with Jackson, for example, gson ... and get the result as an object.
source share