Very very nice!! I'm desperately failing to do something like this for weeks now!
Would you mind if I added this to my next Preset update? Credits given at the end of the code of course. Man I love this!!
Edit: I encounter an error that seems to appear randomly: The script gets an error displaying "Can’t get resultCount of ""." (second line after using the JSON helper).