Thank you for the reply. Both functions are exactly the same exept for the loop.
If you look closely, the string in ColdFusion is actualy wrapped in single-quotes not double-quotes, but when it gets output coldfusion is adding double-quotes instead.
Perhaps it's doing it because this JSON string has an array in it?
I will remove the array and pass just the success element and see if that does anything.