added alternative solution in comments

        //string iss2((string)var_message.AsString());
        //int val1 = (int)v.get("val1").get<double>();
        //int val2 = (int)v.get("val2").get<double>();
        //PostMessage( val1 + val2 );