I'd guess by the test name that this is designed to parse the JSON to ensure it's vaild, not just check the response is successful.  If you're trying to eliminate warnings, I'd retain the decode but remove the unused variable.