Rand

Rand

Joined
Jun 25, 2015

Activity Stream

Rand commented on a Page, JSON for MIRC  -  Jul 05, 2015

Any word on that update? :D

Rand commented on a Comment, JSON for MIRC  -  Jun 26, 2015
Rand commented on a Comment, JSON for MIRC  -  Jun 25, 2015
Rand commented on a Page, JSON for MIRC  -  Jun 25, 2015

I'm having a bit of a problem. Lets say you have a JSON string like such:
{ "200":[["one","two","three"],[1,2,3]]}

Say "200" is an ID. To get the value "one" you'd need to do this: $json(test, 200,0,1)

But what if you don't KNOW that the ID "200" is going to be there? Is there a way to iterate through the objects without knowing the object name with this script? I'm able to do this in C#, but I can't for the life of me figure out how to do this through this script. (Also, do you intend on adding a ".count" suffix, like Timi's?)

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.