Q:

Which is better for creating json request body: method with lots of arguments or builder pattern?

In my tests I send requests with such a body:
{
  "param": "value",
  "param": "value",
  "param": "value",
  "param": "value",
  "param": {
    "param": value,
    "param": "value"
  },
  "param": "value"
}

For each test I use different combination of values (params are always the same). So my question is which is better to use: a method with a bunch of arguments like 
public JSONObject createRequestBody(param1, param2, param3, param4, param5, param6, param7) {...}

or a builder pattern? 
Or maybe there is another solution.
Thanks!

A:

In my experience, builder patterns are much more flexible. If you use constructors directly, it's harder to change the signature (when you add or remove new parameters). With the builder pattern, you just call a new method.

