Denny966 commented on a Page, JSON for MIRC  -  Sep 05, 2014

Got a line too long error with this code, * /set: line too long (line 270, json4mirc.ini)

alias jsontest {
jsonopen -ud test http://api.urbandictionary.com/v0/define?term=runescape
echo -ag Result: $json(test,list,7,definition)
}

SReject  -  Sep 05, 2014

That's a limitation of mIRC sadly. The definition you are looking up is roughly 5150 bytes, mIRC can only handle a max of around 4000 bytes. Its not a bug in my script, but rather a limitation with mIRC.

I can however make my script fill $json().error and $json().errortext instead of causing a terminal failure inside mIRC, if that'd help

Denny966  -  Sep 05, 2014

Thanks for the explaination.

SReject  -  Jan 07, 2015

This is now fixed. For results longer than mIRC's text-length limit, the result is trimmed to 4000 bytes and $json().error is filled

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.