Parse Json Element HTML

Parse Json Element HTML
0

#1

Hi.

Today I have a Question. I try with APIS and know INSTAPAGO API and obtain next:

{
    "success": true,
    "message": "Pago Aprobado",
    "id": "9a92d31f-0505-4a3a-ac3c-944afecf4d5a",
    "code": "201",
    "reference": "23559",
    "voucher": "\r\n<table style="background-color: white;">\r\n    <tbody>\r\n        <tr>\r\n            <td>\r\n                <div style="border: 1px solid #222; padding: 9px; text-align: center; max-width:255px" id="voucher">\r\n\r\n                    <style type="text/css">\r\n                        .normal-left {\r\n                            font-family: Tahoma;\r\n                            font-size: 7pt;\r\n                            text-align: left;\r\n                        }\r\n\r\n                        .normal-right {\r\n                            font-family: Tahoma;\r\n                            font-size: 7pt;\r\n                            text-align: right;\r\n                        }\r\n\r\n                        .big-center {\r\n                            font-family: Tahoma;\r\n                            font-size: 9pt;\r\n                            text-align: center;\r\n                            font-weight: 900;\r\n                        }\r\n\r\n                        .big-center-especial {\r\n                            font-family: Tahoma;\r\n                            font-size: 9pt;\r\n                            text-align: center;\r\n                            font-weight: 900;\r\n                            letter-spacing: .9em;\r\n                        }\r\n\r\n                        .big-left {\r\n                            font-family: Tahoma;\r\n                            font-size: 9pt;\r\n                            text-align: left;\r\n                            font-weight: 900;\r\n                        }\r\n\r\n                        .big-right {\r\n                            font-family: Tahoma;\r\n                            font-size: 9pt;\r\n                            text-align: right;\r\n                            font-weight: 900;\r\n                        }\r\n\r\n                        .normal-center {\r\n                            font-family: Tahoma;\r\n                            font-size: 7pt;\r\n                            text-align: center;\r\n                        }\r\n\r\n                        #voucher td {\r\n                            padding: 0;\r\n                            margin: 0;\r\n                        }\r\n                    </style>\r\n                    <div id="voucher">\r\n                        <table>\r\n                            <tr>\r\n                                <td colspan="4" class="normal-center">COPIA - CLIENTE</td>\r\n                            </tr>\r\n                            <tr>\r\n                                <td colspan="4" class="big-center-especial">\r\n                                    <br />\r\n                                    BANESCO\r\n                                </td>\r\n                            </tr>\r\n\r\n                            <tr>\r\n                                <td colspan="4" class="big-center">\r\n                                    <br />\r\n                                    \r\n                                </td>\r\n                            </tr>\r\n                            <tr>\r\n                                <td colspan="4" style="height: 8px;"></td>\r\n                            </tr>\r\n\r\n                            <tr>\r\n                                <td colspan="4" class="normal-left">TECNOLOGIA INSTAPAGO</td>\r\n                            </tr>\r\n                            <tr>\r\n                                <td colspan="4" class="normal-left">DEMOSTRACIÓN</td>\r\n                            </tr>\r\n                            <tr>\r\n                                <td colspan="4" class="normal-left">J-000000000</td>\r\n                            </tr>\r\n                            <tr>\r\n                                <td colspan="4" style="height: 8px;"></td>\r\n                            </tr>\r\n                            <tr>\r\n                                <td colspan="2" class="normal-left">000000000000</td>\r\n                                <td colspan="2" class="normal-right">000000000000</td>\r\n                            </tr>\r\n                            <tr>\r\n                                <td colspan="1" class="normal-left">FECHA:</td>\r\n                                <td colspan="3" class="normal-left">00/00/00 00:00:00 PM</td>\r\n                            </tr>\r\n                            <tr>\r\n                                <td colspan="1" class="normal-left">NRO CUENTA:</td>\r\n                                <td colspan="2" class="normal-left">000000******0000    </td>\r\n                                <td class="normal-right">'0'</td>\r\n                            </tr>\r\n                            <tr>\r\n                                <td class="normal-left">NRO. REF.:</td>\r\n                                <td class="normal-left">000000</td>\r\n                                <td class="normal-right">LOTE:</td>\r\n                                <td class="normal-right">000</td>\r\n                            </tr>\r\n                            <tr>\r\n                                <td colspan="1" class="normal-left">APROBACION: </td>\r\n                                <td colspan="3" class="normal-left">000000</td>\r\n                            </tr>\r\n                            <tr>\r\n                                <td colspan="1" class="normal-left">SECUENCIA:</td>\r\n                                <td colspan="3" class="normal-left"></td>\r\n                            </tr>\r\n\r\n                            <tr>\r\n                                <td colspan="4" style="height: 8px;"></td>\r\n                            </tr>\r\n                            <tr>\r\n                                <td colspan="4" class="big-center">\r\n                                    <br />\r\n                                    MONTO BS.  0,00\r\n                                </td>\r\n                            </tr>\r\n                            <tr>\r\n                                <td colspan="4" style="height: 8px;"></td>\r\n                            </tr>\r\n                            <tr style="margin-top: 10px;">\r\n                                <td colspan="4" class="big-center">RIF: J-000000000</td>\r\n                            </tr>\r\n                            <tr>\r\n                                <td colspan="4" style="height: 8px;"></td>\r\n                            </tr>\r\n                            <tr>\r\n                                <td colspan="4" class="normal-left">\r\n                                    <b>\r\n                                        <br />\r\n                                    </b>\r\n                                </td>\r\n                            </tr>\r\n                            <tr>\r\n                                <td colspan="4" class="normal-left">\r\n                                    <br />debito\r\n                                </td>\r\n                            </tr>\r\n                            <tr>\r\n                                <td colspan="1" class="normal-left">ID:</td>\r\n                                <td colspan="3" class="normal-left">000000000000000000</td>\r\n                            </tr>\r\n                        </table>\r\n                    </div>\r\n                </div>\r\n            </td>\r\n        </tr>\r\n    </tbody>\r\n</table>\r\n\r\n\r\n\r\n",
    "ordernumber": "",
    "sequence": "23559",
    "approval": "23559",
    "lote": "23559",
    "responsecode": "00",
    "deferred": false,
    "datetime": "8/26/2017 4:15:08 PM",
    "amount": "1.00",
    "authid": null
}

Via Browser, I need to obtain the represent Web Page that item “voucher”.

Can you help me???


#2

I’ve edited your post for readability. When you enter a code block into the forum, remember to precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard.


#3

Wow. I’m sorry. Thanks for your guide.