By following the above link, I was able to resolve the issue. It is strange but true when I was using “item” as a variable name in For Each, it did not work and I was searching for the last hour or so. However, when I used jobject as mentioned in the above post, it worked.
@loginerror, @Palaniyappan any guess why so?