move json_decode call on get_transient

I had to move json_decode inside get_transient, otherwise it was returning NULL.

This works, but it generates a PHP warning for "class-http.php:1775 - gzinflate(): data error".