Oops, forgot to make the declaration of decodeJSON a class method.