• /r/csharp
  • Json to C#

    Hey guys, new the csharp. I was wondering how to store json data into c# variable and convert the variable so that c# can recognize it. Here is my code: AmazonIdentityManagementServiceClient amazonIdentityManagementServiceClient = new AmazonIdentityManagementServiceClient(); string json = { “Version”: “2012-10-17”, “Statement”: { “Effect”: “Allow”, “Action”: “sts:AssumeRole”, “Resource”: “arn:aws:iam::ACCOUNT-ID-WITHOUT-HYPHENS:role/Test*” } }; var response = amazonIdentityManagementServiceClient.CreateRole(new […]