[tvrage] turn the response into JSON before messing with it and add basic error checking