Feature remove for in loop in json2soap

The for in loops where adding method definitions to the generated xml string which is obviously invalid xml. I noticed this when trying to add the data as JSON with an array of objects. Happy to provide an example if required...
why this check? did you run into attributes not being a string?