How do I extract data from JSON with PHP

How can i loop through this json array structure and print out the data in it

"{"archivedOrdertransactionsdata":{"e":"get_order_tx",
                               "ok":"ok",
                               "data":{
                                       "id":"xxxxxxxxxxx",
                                       "type":"sell",
                                       "time":1564513209101,
                                       "lastTxTime":1564513209101,
                                       "lastTx":"9684024199",
                                       "pos":null,
                                       "user":"up125383961",
                                       "status":"d",
                                       "symbol1":"BTC",
                                       "symbol2":"USD",
                                       "amount":"-0.00205078",
                                       "remains":"0.00000000",
                                       "tfa:USD":"0.05",
                                       "tta:USD":"19.80",
                                       "a:BTC:cds":"0.00205078",
                                       "a:USD:cds":"19.80",
                                       "f:USD:cds":"0.05",
                                       "tradingFeeTaker":"0.25",
                                       "tradingFeeStrategy":"userVolumeAmount",
                                       "tradingFeeUserVolumeAmount":"408256",
                                       "orderId":"xxxxxxxxxxx","next":false,
                                       "vtx":[
                                               {"id":"9684024199",
                                                "type":"sell",
                                                "time":"2019-07-30T19:00:09.101Z",
                                                "user":"up125383961",
                                                "c":"user:up125383961:a:BTC",
                                                "d":"order:xxxxxxxxxxx:a:BTC",
                                                "a":"0.00000000",
                                                "amount":"-0.00205078",
                                                "balance":"0.00000000",
                                                "symbol":"BTC",
                                                "order":"xxxxxxxxxxx",
                                                "buy":null,
                                                "sell":null,
                                                "pair":null,
                                                "pos":null,
                                                "office":"UK",
                                                "cs":0,
                                                "ds":0},
                                                {
                                                 "id":"9684024195",
                                                 "type":"sell",
                                                 "time":"2019-07-30T19:00:09.101Z",
                                                 "user":"up125383961",
                                                 "c":"user:up125383961:a:USD",
                                                 "d":"order:xxxxxxxxxxx:a:USD",
                                                 "a":"19.75000000",
                                                 "amount":"19.75000000",
                                                 "balance":"19.76000000",
                                                 "symbol":"USD",
                                                 "order":"xxxxxxxxxxx",
                                                 "buy":"9684013492",
                                                 "sell":"xxxxxxxxxxx",
                                                 "pair":null,
                                                 "pos":null,
                                                 "office":"UK",
                                                 "cs":"19.76",
                                                 "ds":0,
                                                 "price":9655.4,
                                                 "symbol2":"BTC",
                                                 "fee_amount":"0.05"}
                                                 ]}}}" string(1291) 
{"archivedOrdertransactionsdata":{"e":"get_order_tx",
                               "ok":"ok",
                               "data":{
                                       "id":"xxxxxxxxxxx",
                                       "type":"sell",
                                       "time":1564513209101,
                                       "lastTxTime":1564513209101,
                                       "lastTx":"9684024199",
                                       "pos":null,
                                       "user":"up125383961",
                                       "status":"d",
                                       "symbol1":"BTC",
                                       "symbol2":"USD",
                                       "amount":"-0.00205078",
                                       "remains":"0.00000000",
                                       "tfa:USD":"0.05",
                                       "tta:USD":"19.80",
                                       "a:BTC:cds":"0.00205078",
                                       "a:USD:cds":"19.80",
                                       "f:USD:cds":"0.05",
                                       "tradingFeeTaker":"0.25",
                                       "tradingFeeStrategy":"userVolumeAmount",
                                       "tradingFeeUserVolumeAmount":"408256",
                                       "orderId":"xxxxxxxxxxx","next":false,
                                       "vtx":[
                                               {"id":"9684024199",
                                                "type":"sell",
                                                "time":"2019-07-30T19:00:09.101Z",
                                                "user":"up125383961",
                                                "c":"user:up125383961:a:BTC",
                                                "d":"order:xxxxxxxxxxx:a:BTC",
                                                "a":"0.00000000",
                                                "amount":"-0.00205078",
                                                "balance":"0.00000000",
                                                "symbol":"BTC",
                                                "order":"xxxxxxxxxxx",
                                                "buy":null,
                                                "sell":null,
                                                "pair":null,
                                                "pos":null,
                                                "office":"UK",
                                                "cs":0,
                                                "ds":0},
                                                {
                                                 "id":"9684024195",
                                                 "type":"sell",
                                                 "time":"2019-07-30T19:00:09.101Z",
                                                 "user":"up125383961",
                                                 "c":"user:up125383961:a:USD",
                                                 "d":"order:xxxxxxxxxxx:a:USD",
                                                 "a":"19.75000000",
                                                 "amount":"19.75000000",
                                                 "balance":"19.76000000",
                                                 "symbol":"USD",
                                                 "order":"xxxxxxxxxxx",
                                                 "buy":"9684013492",
                                                 "sell":"xxxxxxxxxxx",
                                                 "pair":null,
                                                 "pos":null,
                                                 "office":"UK",
                                                 "cs":"19.76",
                                                 "ds":0,
                                                 "price":9655.4,
                                                 "symbol2":"BTC",
                                                 "fee_amount":"0.05"}
                                                 ]}}}" string(1291)