This project has moved and is read-only. For the latest updates, please go here.

how to count sub elements

Jul 3, 2012 at 2:36 PM

Having a json structure like this
JToken["artistmatches"]["artist"].Count() return 3, because of 3 sub elements (name, nick, age) of artist jtoken
I need to have the real count of artist subnode, which in the case above should return 1.
So, how to do this ?