Sjoepele commented on a Page, JSON for MIRC  -  Feb 22, 2015

Im trying to parse JSON returned from the Steam API but its spaced really weirdly and doesnt do the thing. Anyone happen to know a workaround? On the picture you'll see the difference between normal JSON and Steam's JSON. Ive uploaded the full json here: http://pastebin.com/raw.php?i=eSx1acN3

Sjoepele  -  Feb 22, 2015

neeeeevermind it wasnt the spacing that was the problem. I didnt realize i had to specify the array when there was only one. instead of $json(steam, response, players, personastate) i had to specify the 0th array like $json(steam, response, players, 0, personastate). Left the post for future peeps who might run into the same troubles.

SReject  -  Apr 07, 2015

Yea. The json arrays like many programming languages, use 0th indexed arrays. Where as mIRC usually starts at 1. In one of the examples I demostrate it. May add a note to the description about it.

Sign in to comment

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.