if (spec.hasParamsObject()) {
Type paramType = spec.getType();
FieldNavigator navigator = new FieldNavigator(paramType);
StringWriter json = new StringWriter();
final JsonWriter jsonWriter = new JsonWriter(json);
jsonWriter.beginObject();
ValueReceiver receiver = new ValueReceiver() {
@SuppressWarnings({"unchecked", "rawtypes"})
@Override
public void put(String name, Type type, Object value) throws IOException {
jsonWriter.name(name);