you could squash this code into something like

```ruby
fields_array = fields.map {|index,value| "#{index}:(#{build_fields_params(value)})" }
fields_array.join(',')
```