I'm playing with trying build the nested structure into the actual variable as suggested rather than trying to output correctly, I keep getting errors when the client run happens "*Error: Could not initialize global default settings: no implicit conversion of Array into Hash"* the same as when I was trying to nest in the output, I can parse the error, but now I don't understand why I'm getting that, the variable is already an array, do I need to pass this into to_json to stop it trying to do any conversion ?