Now I add the array as a string to the body:
RequestBody body = new FormEncodingBuilder() .add("profiles", "[122, 125, 336]") .build();
But the server needs an array with the post parameter. How to add an array instead of a string? Is this possible with okhttp?
source share