Your comments

As a sidenote for anyone looking, I had to manually enter JSON as copying and pasting didn't work. Probably to do with errant character in my original snippet.

aargh, I wasn't thinking JSON! Thank you :)