Flatting nested array in Json

You would need to use a ruby filter. This might help you get started. You will need to add array handling.