Skip to main content

¿Cómo puedo convertir la siguiente respuesta Json en un objeto C #C#?

{ "payment": [ {

{
    "payment": [
        {
       
        "processorFields": [
            {
                "keyword": "credit",
                "value": {
                    "code": "1",
                    "type": "03",
                    "groupCode": "X",
                    "installments": "12"
                },
                "displayOn": "none"
            },
            {
                "keyword": "totalAmount",
                "value": 56.1,
                "displayOn": "none"
            },
            {
                "keyword": "interestAmount",
                "value": 1.1,
                "displayOn": "none"
            },
            {
                "keyword": "installmentAmount",
                "value": 4.675,
                "displayOn": "none"
            },
            {
                "keyword": "iceAmount",
                "value": 0,
                "displayOn": "none"
            },
            {
                "keyword": "lastDigits",
                "value": "0008",
                "displayOn": "none"
            }
         ]
      }
    ]
}

}

¿Cómo puedo convertir la siguiente respuesta Json en un objeto C #?

{ "payment": [ {

        "processorFields": [
            {
                "keyword": "credit",
                "value": {
                    "code": "1",
                    "type": "03",
                    "groupCode": "X",
                    "installments": "12"
                },
                "displayOn": "none"
            },
            {
                "keyword": "totalAmount",
                "value": 56.1,
                "displayOn": "none"
            },
            {
                "keyword": "interestAmount",
                "value": 1.1,
                "displayOn": "none"
            },
            {
                "keyword": "installmentAmount",
                "value": 4.675,
                "displayOn": "none"
            },
            {
                "keyword": "iceAmount",
                "value": 0,
                "displayOn": "none"
            },
            {
                "keyword": "lastDigits",
                "value": "0008",
                "displayOn": "none"
            }
        ]
    }
]

}

¿Cómo puedo convertir la siguiente respuesta Json en un objeto C#?

{
    "payment": [
        {
       
        "processorFields": [
            {
                "keyword": "credit",
                "value": {
                    "code": "1",
                    "type": "03",
                    "groupCode": "X",
                    "installments": "12"
                },
                "displayOn": "none"
            },
            {
                "keyword": "totalAmount",
                "value": 56.1,
                "displayOn": "none"
            },
            {
                "keyword": "interestAmount",
                "value": 1.1,
                "displayOn": "none"
            },
            {
                "keyword": "installmentAmount",
                "value": 4.675,
                "displayOn": "none"
            },
            {
                "keyword": "iceAmount",
                "value": 0,
                "displayOn": "none"
            },
            {
                "keyword": "lastDigits",
                "value": "0008",
                "displayOn": "none"
            }
         ]
      }
    ]
}
Origen Enlace

¿Cómo puedo convertir la siguiente respuesta Json en un objeto C #?

{ "payment": [ {

        "processorFields": [
            {
                "keyword": "credit",
                "value": {
                    "code": "1",
                    "type": "03",
                    "groupCode": "X",
                    "installments": "12"
                },
                "displayOn": "none"
            },
            {
                "keyword": "totalAmount",
                "value": 56.1,
                "displayOn": "none"
            },
            {
                "keyword": "interestAmount",
                "value": 1.1,
                "displayOn": "none"
            },
            {
                "keyword": "installmentAmount",
                "value": 4.675,
                "displayOn": "none"
            },
            {
                "keyword": "iceAmount",
                "value": 0,
                "displayOn": "none"
            },
            {
                "keyword": "lastDigits",
                "value": "0008",
                "displayOn": "none"
            }
        ]
    }
]

}